API Reference > OdGe Classes > OdGeLine2d Class > OdGeLine2d Constructor > OdGeLine2d::OdGeLine2d Constructor (OdGePoint2d&, OdGePoint2d&)
OdGeLine2d::OdGeLine2d Constructor (OdGePoint2d&, OdGePoint2d&)
Syntax
C++
OdGeLine2d(const OdGePoint2d& point1, const OdGePoint2d& point2);
Parameters 
Description 
const OdGePoint2d& point1 
[in] First point of the 2D line.  
const OdGePoint2d& point2 
[in] Second point of the 2D line. 

Constructor for the OdGeLine2d class. 

 

Constructs an infinite line that passes through the first and second points. The passed points should not be coincident.

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