C4 Engine
C4 Engine API Documentation

Random::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

Random::RandomUnitVector2D

Random::RandomUnitVector3D

Random::RandomPointInsideDisk

Random::RandomPointInsideSphere

Random::RandomInteger

Random::RandomFloat