|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.util.noise.NoiseGenerator
public abstract class NoiseGenerator
Base class for all noise generators
Field Summary | |
---|---|
protected double |
offsetX
|
protected double |
offsetY
|
protected double |
offsetZ
|
protected int[] |
perm
|
Constructor Summary | |
---|---|
NoiseGenerator()
|
Method Summary | |
---|---|
protected static double |
fade(double x)
|
static int |
floor(double x)
Speedy floor, faster than (int)Math.floor(x) |
protected static double |
grad(int hash,
double x,
double y,
double z)
|
protected static double |
lerp(double x,
double y,
double z)
|
double |
noise(double x)
Computes and returns the 1D noise for the given coordinate in 1D space |
double |
noise(double x,
double y)
Computes and returns the 2D noise for the given coordinates in 2D space |
abstract double |
noise(double x,
double y,
double z)
Computes and returns the 3D noise for the given coordinates in 3D space |
double |
noise(double x,
double y,
double z,
int octaves,
double frequency,
double amplitude)
Generates noise for the 3D coordinates using the specified number of octaves and parameters |
double |
noise(double x,
double y,
double z,
int octaves,
double frequency,
double amplitude,
boolean normalized)
Generates noise for the 3D coordinates using the specified number of octaves and parameters |
double |
noise(double x,
double y,
int octaves,
double frequency,
double amplitude)
Generates noise for the 2D coordinates using the specified number of octaves and parameters |
double |
noise(double x,
double y,
int octaves,
double frequency,
double amplitude,
boolean normalized)
Generates noise for the 2D coordinates using the specified number of octaves and parameters |
double |
noise(double x,
int octaves,
double frequency,
double amplitude)
Generates noise for the 1D coordinates using the specified number of octaves and parameters |
double |
noise(double x,
int octaves,
double frequency,
double amplitude,
boolean normalized)
Generates noise for the 1D coordinates using the specified number of octaves and parameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final int[] perm
protected double offsetX
protected double offsetY
protected double offsetZ
Constructor Detail |
---|
public NoiseGenerator()
Method Detail |
---|
public static int floor(double x)
x
- Value to floor
protected static double fade(double x)
protected static double lerp(double x, double y, double z)
protected static double grad(int hash, double x, double y, double z)
public double noise(double x)
x
- X coordinate
public double noise(double x, double y)
x
- X coordinatey
- Y coordinate
public abstract double noise(double x, double y, double z)
x
- X coordinatey
- Y coordinatez
- Z coordinate
public double noise(double x, int octaves, double frequency, double amplitude)
x
- X-coordinateoctaves
- Number of octaves to usefrequency
- How much to alter the frequency by each octaveamplitude
- How much to alter the amplitude by each octave
public double noise(double x, int octaves, double frequency, double amplitude, boolean normalized)
x
- X-coordinateoctaves
- Number of octaves to usefrequency
- How much to alter the frequency by each octaveamplitude
- How much to alter the amplitude by each octavenormalized
- If true, normalize the value to [-1, 1]
public double noise(double x, double y, int octaves, double frequency, double amplitude)
x
- X-coordinatey
- Y-coordinateoctaves
- Number of octaves to usefrequency
- How much to alter the frequency by each octaveamplitude
- How much to alter the amplitude by each octave
public double noise(double x, double y, int octaves, double frequency, double amplitude, boolean normalized)
x
- X-coordinatey
- Y-coordinateoctaves
- Number of octaves to usefrequency
- How much to alter the frequency by each octaveamplitude
- How much to alter the amplitude by each octavenormalized
- If true, normalize the value to [-1, 1]
public double noise(double x, double y, double z, int octaves, double frequency, double amplitude)
x
- X-coordinatey
- Y-coordinatez
- Z-coordinateoctaves
- Number of octaves to usefrequency
- How much to alter the frequency by each octaveamplitude
- How much to alter the amplitude by each octave
public double noise(double x, double y, double z, int octaves, double frequency, double amplitude, boolean normalized)
x
- X-coordinatey
- Y-coordinatez
- Z-coordinateoctaves
- Number of octaves to usefrequency
- How much to alter the frequency by each octaveamplitude
- How much to alter the amplitude by each octavenormalized
- If true, normalize the value to [-1, 1]
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |