API Reference > OdGe Classes > OdGeLineSeg2d Class > OdGeLineSeg2d Methods > set Method > OdGeLineSeg2d::set Method (OdGePoint2d&, OdGeVector2d&)
OdGeLineSeg2d::set Method (OdGePoint2d&, OdGeVector2d&)
Syntax
C++
OdGeLineSeg2d& set(const OdGePoint2d& point, const OdGeVector2d& vect);
Parameters 
Description 
const OdGePoint2d& point 
[in] A 2D point that represents the start of the segment.  
const OdGeVector2d& vect 
[in] Defines the direction of the line and the second point of the line. 

Reference to this OdGeLineSeg2d object.

Sets the parameters for this line according to the arguments and returns a reference to this line. 

 

Constructs a line segment between points point and point + vect. The vect parameter cannot have a zero length.

Copyright © 2002–2022. Open Design Alliance. All rights reserved.