Back to class index
| Capsule::RandomPointOnSurfaceSyntaxfloat4 Capsule::RandomPointOnSurface(LCG &rng) const; [6 lines of code]Generates a random point on the surface of this Capsule. See AlsoWork in progress:Todo: in float4 Capsule::RandomPointOnSurface(LCG &rng) const: The points are NOT distributed uniformly. Convert this to using the rejection method and RandomPointInside() to produce a uniform distribution. |