Support Forum G3D Web Page |
Public Member Functions | |
HaltonSequence (int xBase, int yBase) | |
To be a true Halton sequence, xBase and yBase must be prime, and not equal. More... | |
void | next (Point2 &p) |
The next point in the Halton Sequence. More... | |
Point2 | next () |
void | reset () |
void | trash (int n) |
Throw out the next N terms in the sequence. More... | |
Static Public Member Functions | |
static float | sample (int index, float base) |
Samples the Halton Van der Corput sequence statelessly. More... | |
Static Public Attributes | |
static const int | numPrimes = 46 |
Length of primeBases. More... | |
static const float | primeBases [numPrimes] |
|
inline |
To be a true Halton sequence, xBase and yBase must be prime, and not equal.
void G3D::HaltonSequence::next | ( | Point2 & | p | ) |
The next point in the Halton Sequence.
|
inline |
|
inline |
|
inlinestatic |
Samples the Halton Van der Corput sequence statelessly.
Base should be prime. Returns a number on [0, 1]
|
inline |
Throw out the next N terms in the sequence.
|
static |
Length of primeBases.
|
static |