C4 Engine
C4 Engine API Documentation

Motor3D::Unitize

Defined in:  TSMotor3D.h
Unitizes the weight of a motor.
Prototype

Motor3D& Unitize(void);

Description
The Unitize function multiplies a motor by the inverse magnitude of its weight, which is the quaternion given by its e41, e42, e43, and antiscalar coordinates. After calling this function, the rotor component of the motor is unit-length. If these coordinates are all zero, then the result is undefined.

The return value is a reference to the motor object.