public class PnNoise
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int[][] |
m_preComputedNoise |
Constructor and Description |
---|
PnNoise()
Creates and initializes new noise
|
Modifier and Type | Method and Description |
---|---|
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) |
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."