C4 Engine
C4 Engine API Documentation

Random::RandomUnitVector3D

Defined in:  C4Computation.h
Returns a random unit-length 3D vector.
Prototype

Vector3D RandomUnitVector3D(void);

Description
The RandomUnitVector3D function returns a random unit-length 3D vector. The values returned are evenly distributed over the 3D unit sphere.
See Also

Random::RandomUnitVector2D

Random::RandomUnitQuaternion

Random::RandomPointInsideDisk

Random::RandomPointInsideSphere

Random::RandomInteger

Random::RandomFloat