#include <PNoise.h>
Public Member Functions | |
PNoise () | |
seeds itself with the time | |
PNoise (int seed) | |
you choose the seed | |
virtual | ~PNoise () |
void | seed () |
seed rand with the time | |
void | seed (int s) |
specify seed | |
double | PerlinNoise1D (double x, int n=1, double alpha=2, double beta=2) |
range is -1 -> 1 | |
double | PerlinNoise2D (double x, double y, int n=1, double alpha=2, double beta=2) |
double | PerlinNoise3D (double x, double y, double z, int n=1, double alpha=2, double beta=2) |
double | PerlinNoise3DABS (double x, double y, double z, int n=1, double alpha=2, double beta=2) |
range is 0 -> 1 | |
void | setParams (int n, double alpha=2, double beta=2) |
double | PN1D (double x) |
double | PN2D (double x, double y) |
double | PN3D (double x, double y, double z) |
double | PN3DA (double x, double y, double z) |
|
seeds itself with the time
Definition at line 52 of file PNoise.cpp. |
|
you choose the seed
Definition at line 78 of file PNoise.cpp. |
|
Definition at line 104 of file PNoise.cpp. References B. |
|
range is -1 -> 1 Typically it is 2, As this approaches 1 the function is noisier. "beta" is the harmonic scaling/spacing, typically 2. "n" is the number of harmonics to sum. Notice: n, alpha, and beta have default values set. These match Ken's original calls Definition at line 131 of file PNoise.cpp. References alpha, n, scale, and x. Referenced by PN1D(). |
|
Definition at line 149 of file PNoise.cpp. References alpha, n, scale, x, and y. Referenced by PN2D(). |
|
Definition at line 169 of file PNoise.cpp. References alpha, n, scale, x, y, and z. Referenced by PN3D(). |
|
range is 0 -> 1
Definition at line 195 of file PNoise.cpp. References ABS, alpha, n, scale, x, y, and z. Referenced by PN3DA(). |
|
Definition at line 227 of file PNoise.cpp. References PerlinNoise1D(), and x. |
|
Definition at line 234 of file PNoise.cpp. References PerlinNoise2D(), x, and y. |
|
Definition at line 241 of file PNoise.cpp. References PerlinNoise3D(), x, y, and z. |
|
Definition at line 248 of file PNoise.cpp. References PerlinNoise3DABS(), x, y, and z. |
|
specify seed
Definition at line 125 of file PNoise.cpp. References s. |
|
seed rand with the time
Definition at line 120 of file PNoise.cpp. Referenced by gen2DPerlinTexture(), gen3DPerlinTexture(), and PNoise(). |
|
Definition at line 218 of file PNoise.cpp. Referenced by gen2DPerlinTexture(), and gen3DPerlinTexture(). |