API Reference > OdDb Classes > OdDbRay Class > OdDbRay Methods > OdDbRay::setUnitDir Method
OdDbRay::setUnitDir Method
Syntax
C++
void setUnitDir(const OdGeVector3d& geDirVector);
Parameters 
Description 
const OdGeVector3d& geDirVector 
[in] Three-dimensional vector instance to set the ray direction. 

Sets the direction vector of the ray (DXF 11) in WCS. The initial value is (0,0,1) by default. 

 

The method automatically converts the specified coordinates to a unit vector.

Example of Working with the Ray Object 

Specific Ray Properties 

OdDbRay::unitDir() method

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