| Support Forum Library Source SourceForge Page G3D Web Page |
3D fixed point Perlin noise generator. More...
Public Member Functions | |
| Noise () | |
| Not threadsafe. | |
| int | sample (int x, int y, int z) |
| Returns numbers between -2^16 and 2^16. | |
| float | sampleFloat (int x, int y, int z) |
| Returns numbers on the range [-1, 1]. | |
| uint8 | sampleUint8 (int x, int y, int z) |
| Returns numbers on the range [0, 255]. | |
Static Public Member Functions | |
| static Noise & | common () |
3D fixed point Perlin noise generator.
Ported from Ken Perlin's Java INoise implementation.
Example:
|
inline |
Not threadsafe.
|
static |
Returns numbers between -2^16 and 2^16.
Arguments should be on the order of 2^16
Threadsafe.
Referenced by sampleFloat(), and sampleUint8().
Returns numbers on the range [-1, 1].
Arguments should be on the order of 2^16
Threadsafe.
1.8.2