C4 Engine
C4 Engine API Documentation

Random::RandomPointInsideDisk

Defined in:  C4Computation.h
Returns a random point inside a circular disk.
Prototype

Point2D RandomPointInsideDisk(float radius);

Parameters
radius The radius of the disk.
Description
The RandomPointInsideDisk function returns a random point inside an open circular disk with radius specified by the radius parameter. The values returned are evenly distributed over the area of the disk's interior, but will never be exactly on the boundary.
See Also

Random::RandomPointInsideSphere

Random::RandomUnitVector2D

Random::RandomUnitVector3D

Random::RandomUnitQuaternion

Random::RandomInteger

Random::RandomFloat