API Reference > OdGe Classes > OdGeVector2d Class > OdGeVector2d Methods > normalize Method > OdGeVector2d::normalize Method (OdGeTol&, OdGeError&)
OdGeVector2d::normalize Method (OdGeTol&, OdGeError&)
Syntax
C++
OdGeVector2d& normalize(const OdGeTol& tol, OdGeError& status);
Parameters 
Description 
const OdGeTol& tol 
[in] Geometric tolerance.  
OdGeError& status 
[out] Receives the status of normalization. 

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, and kThis is returned in status. 

Possible values for status are as follows: 

untitled table kOk k0This

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