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 a segment.  
const OdGePoint2d& point2 
[in] Second 2D point that represents an end of a segment. 

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

 

point1 and point2 construct a line segment between points point1 and point2. The points cannot be coincident.

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