API Reference > OdGe Classes > OdGeLine2d Class > OdGeLine2d Methods > set Method > OdGeLine2d::set Method (OdGePoint2d&, OdGeVector2d&)
OdGeLine2d::set Method (OdGePoint2d&, OdGeVector2d&)
Syntax
C++
OdGeLine2d& set(const OdGePoint2d& point, const OdGeVector2d& vect);
Parameters 
Description 
const OdGePoint2d& point 
[in] A 2D point on a line.  
const OdGeVector2d& vect 
[in] Defines the direction of the line. 

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

 

point and vect construct an infinite line passing through point with a direction of vect. vect cannot have a zero length.

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