HDK
|
Go to the source code of this file.
Classes | |
class | Rand32 |
class | Rand48 |
Functions | |
template<class Vec , class Rand > | |
IMATH_HOSTDEVICE Vec | solidSphereRand (Rand &rand) |
template<class Vec , class Rand > | |
IMATH_HOSTDEVICE Vec | hollowSphereRand (Rand &rand) |
template<class Rand > | |
IMATH_HOSTDEVICE float | gaussRand (Rand &rand) |
template<class Vec , class Rand > | |
IMATH_HOSTDEVICE Vec | gaussSphereRand (Rand &rand) |
IMATH_HOSTDEVICE float gaussRand | ( | Rand & | rand | ) |
Return random numbers with a normal (Gaussian) distribution with zero mean and unit variance.
Definition at line 236 of file ImathRandom.h.
IMATH_HOSTDEVICE Vec gaussSphereRand | ( | Rand & | rand | ) |
Return random points whose distance from the origin has a normal (Gaussian) distribution with zero mean and unit variance.
Definition at line 254 of file ImathRandom.h.
IMATH_HOSTDEVICE Vec hollowSphereRand | ( | Rand & | rand | ) |
Return random points uniformly distributed on the surface of a sphere with radius 1 around the origin.
Definition at line 218 of file ImathRandom.h.
IMATH_HOSTDEVICE Vec solidSphereRand | ( | Rand & | rand | ) |
Return random points uniformly distributed in a sphere with radius 1 around the origin (distance from origin <= 1).
Definition at line 203 of file ImathRandom.h.