C4 Engine
C4 Engine API Documentation

Vector4D::Normalize

Defined in:  TSVector4D.h
Normalizes a 4D vector.
Prototype

Vector4D& Normalize(void);

Description
The Normalize function multiplies a 4D 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.