API Reference > OdGe Classes > OdGeLineSeg2d Class > OdGeLineSeg2d Methods > set Method > OdGeLineSeg2d::set Method (OdGePoint2d&, OdGePoint2d&)
OdGeLineSeg2d::set Method (OdGePoint2d&, OdGePoint2d&)
Syntax
C++
OdGeLineSeg2d& set(const OdGePoint2d& point1, const OdGePoint2d& point2);
Parameters 
Description 
const OdGePoint2d& point1 
[in] First 2D point that represents the start of the segment.  
const OdGePoint2d& point2 
[in] Second 2D point that represents the end of the segment. 

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 point1 and point2. The points cannot coincide.

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