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 a segment.  
const OdGeVector2d& vect 
[in] Defines the direction of the line and the second point of the line. 

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

 

point and vect construct a line segment between points point and point + vect. vect cannot have a zero length.

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