HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ImathRandom.h File Reference
#include "ImathExport.h"
#include "ImathNamespace.h"
#include <math.h>
#include <stdlib.h>
+ Include dependency graph for ImathRandom.h:

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)
 

Function Documentation

template<class 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.

template<class Vec , class Rand >
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.

template<class Vec , class Rand >
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.

template<class Vec , class Rand >
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.