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

Returns a reference to this ray.

Sets the parameters for this ray according to the arguments. 

 

point1 and point2 construct a semi-infinite line starting at point1, and passing through point2. The points cannot be coincident.

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