API Reference > OdGe Classes > OdGeRay2d Class > OdGeRay2d Methods > set Method > OdGeRay2d::set Method (OdGePoint2d&, OdGeVector2d&)
OdGeRay2d::set Method (OdGePoint2d&, OdGeVector2d&)
Syntax
C++
OdGeRay2d& set(const OdGePoint2d& point, const OdGeVector2d& vect);
Parameters 
Description 
const OdGePoint2d& point 
[in] A 2D point from which the ray is casted.  
const OdGeVector2d& vect 
[in] The direction of ray. 

Returns a reference to this ray.

Sets the parameters for this ray according to the arguments. 

 

point and vect construct a semi-infinite line starting point with a direction of vect. vect cannot have a zero length.

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