API Reference > OdGe Classes > OdGeRay3d Class > OdGeRay3d Methods > set Method > OdGeRay3d::set Method (OdGePoint3d&, OdGePoint3d&)
OdGeRay3d::set Method (OdGePoint3d&, OdGePoint3d&)
Syntax
C++
OdGeRay3d& set(const OdGePoint3d& point1, const OdGePoint3d& point2);
Parameters 
Description 
const OdGePoint3d& point1 
[in] A 3D point from which the ray is casted.  
const OdGePoint3d& point2 
[in] A 3D 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.