C4 Engine
C4 Engine API Documentation

Random::RandomPointInsideSphere

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

Point3D RandomPointInsideSphere(float radius);

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

Random::RandomPointInsideDisk

Random::RandomUnitVector2D

Random::RandomUnitVector3D

Random::RandomUnitQuaternion

Random::RandomInteger

Random::RandomFloat