API Reference > OdGe Classes > OdGeLine2d Class > OdGeLine2d Methods > set Method > OdGeLine2d::set Method (OdGePoint2d&, OdGePoint2d&)
OdGeLine2d::set Method (OdGePoint2d&, OdGePoint2d&)
Syntax
C++
OdGeLine2d& set(const OdGePoint2d& point1, const OdGePoint2d& point2);
Parameters 
Description 
const OdGePoint2d& point1 
[in] First 2D point that is used to construct an infinite line.  
const OdGePoint2d& point2 
[in] Second 2D point that is used to construct an infinite line. 

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

 

point1 and point2 construct an infinite line passing through both points. The points should no be coincident.

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