API Reference > OdGe Classes > OdGeVector2d Class > OdGeVector2d Methods > OdGeVector2d::normalizeGetLength Method
OdGeVector2d::normalizeGetLength Method
Syntax
C++
double normalizeGetLength(double tol = 1.e-300);
Parameters 
Description 
double tol = 1.e-300 
[in] Geometric tolerance. 

Sets this vector to the unit vector codirectional with this vector, and returns the length prior to normalization. 

 

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

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