API Reference > OdGe Classes > OdGeVector2d Class > OdGeVector2d Methods > normalize Method > OdGeVector2d::normalize Method (OdGeTol&)
OdGeVector2d::normalize Method (OdGeTol&)
Syntax
C++
OdGeVector2d& normalize(const OdGeTol& tol = OdGeContext::gTol);
Parameters 
Description 
const OdGeTol& tol = OdGeContext::gTol 
[in] Geometric tolerance. 

Sets this vector to the unit vector codirectional with this vector, and returns a reference to this vector 

 

If this.length() <= tol, this vector is unchanged.

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