|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjvx.numeric.PnNoise
Generates 2D procedural white noise by hashtable-like method to generate a gradient on an integer lattice that is made continuous by smoothed interpolation. Noise is 256-periodic.
| Field Summary | |
int[][] |
m_preComputedNoise
|
| Constructor Summary | |
PnNoise()
Creates and initializes new noise |
|
| Method Summary | |
int |
getPreComputedNoise(int x,
int y)
Call preComputeNoise(double, int, int, int, int)
before using this. |
int |
intNoise(double x,
double y)
Value of white noise at given 2D point. |
float |
noise(float x,
float y)
Value of white noise at given 2D point. |
void |
preComputeNoise(double coarseness,
int xmin,
int ymin,
int xmax,
int ymax)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int[][] m_preComputedNoise
| Constructor Detail |
public PnNoise()
| Method Detail |
public float noise(float x,
float y)
public int intNoise(double x,
double y)
public void preComputeNoise(double coarseness,
int xmin,
int ymin,
int xmax,
int ymax)
public int getPreComputedNoise(int x,
int y)
preComputeNoise(double, int, int, int, int)
before using this.
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||