C4 Engine
C4 Engine API Documentation

Quaternion::Normalize

Defined in:  TSQuaternion.h
Normalizes a quaternion.
Prototype

Quatnerion& Normalize(void);

Description
The Normalize function multiplies a quaternion by the inverse of its magnitude, normalizing it to unit length. Normalizing the zero quaternion produces undefined results.

The return value is a reference to the quaternion object.