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

Sets the unit direction vector of the infinity line (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 Xline Object 

Specific Infinite Line Properties 

OdDbXline::unitDir() method

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