Random::RandomPointInsideSphere
Defined in:
Returns a random point inside a circular sphere.
C4Computation.hPrototype
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
