C4 Engine
C4 Engine API Documentation

Random::RandomUnitVector2D

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

Vector2D RandomUnitVector2D(void);

Description
The RandomUnitVector2D function returns a random unit-length 2D vector. The values returned are evenly distributed over the 2D unit circle.
See Also

Random::RandomUnitVector3D

Random::RandomUnitQuaternion

Random::RandomPointInsideDisk

Random::RandomPointInsideSphere

Random::RandomInteger

Random::RandomFloat