C4 Engine Terathon Software C4 Engine API Documentation

• Math Library

API Links
Developer Links

Math::RandomUnitQuaternion

Defined in:  C4Computation.h
Returns a random unit-length quaternion.
Prototype

Quaternion RandomUnitQuaternion(void);

Description
The RandomUnitQuaternion function returns a random unit-length quaternion. The values returned are evenly distributed over the 4D unit sphere.
See Also

Math::RandomUnitVector

Math::Random

Math::RandomFloat