Vector2D::Normalize
Defined in: C4Vector2D.h
Normalizes a 2D vector.
Prototype
Vector2D& Normalize(void);
Description
The Normalize function multiplies a 2D vector by the inverse of its magnitude, normalizing it to unit length. Normalizing the zero vector produces undefined results.
The return value is a reference to the vector object.
|