12 #ifndef G3D_PrecomputedRandom_h
13 #define G3D_PrecomputedRandom_h
86 virtual float uniform(
float low,
float high);
95 virtual void cosHemi(
float&
x,
float&
y,
float&
z);
100 virtual void cosPowHemi(
const float k,
float&
x,
float&
y,
float&
z);
105 virtual void sphere(
float&
x,
float&
y,
float&
z);
PrecomputedRandom(const HemiUniformData *data1, const SphereBitsData *data2, int dataSize, uint32 seed=0xF018A4D2)
Definition: PrecomputedRandom.cpp:46
int m_index
Definition: PrecomputedRandom.h:59
virtual float uniform()
Definition: PrecomputedRandom.cpp:71
const HemiUniformData * m_hemiUniform
Definition: PrecomputedRandom.h:53
~PrecomputedRandom()
Definition: PrecomputedRandom.cpp:58
float sphereY
Definition: PrecomputedRandom.h:45
virtual void cosPowHemi(const float k, float &x, float &y, float &z)
Definition: PrecomputedRandom.cpp:84
int m_modMask
Definition: PrecomputedRandom.h:57
virtual void cosHemi(float &x, float &y, float &z)
Definition: PrecomputedRandom.cpp:77
float sphereX
Definition: PrecomputedRandom.h:44
uint32 bits
Definition: PrecomputedRandom.h:47
const SphereBitsData * m_sphereBits
Definition: PrecomputedRandom.h:54
G3D::int16 z
Definition: Vector3int16.h:46
float sphereZ
Definition: PrecomputedRandom.h:46
G3D::int16 y
Definition: Vector2int16.h:38
Definition: PrecomputedRandom.h:42
Definition: PrecomputedRandom.h:29
virtual uint32 bits()
Definition: PrecomputedRandom.cpp:112
bool m_freeData
Definition: PrecomputedRandom.h:62
virtual void sphere(float &x, float &y, float &z)
Definition: PrecomputedRandom.cpp:118
uint32_t uint32
Definition: g3dmath.h:168
G3D::int16 x
Definition: Vector2int16.h:37