![]() |
Bukkit
1.5.2-R1.0
|
Base class for all noise generators. More...
Inheritance diagram for org.bukkit.util.noise.NoiseGenerator:Public Member Functions | |
| 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, 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. | |
| 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, 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. | |
Static Public Member Functions | |
| static int | floor (double x) |
| Speedy floor, faster than (int)Math.floor(x) | |
Static Protected Member Functions | |
| static double | fade (double x) |
| static double | lerp (double x, double y, double z) |
| static double | grad (int hash, double x, double y, double z) |
Protected Attributes | |
| final int | perm [] = new int[512] |
| double | offsetX |
| double | offsetY |
| double | offsetZ |
Base class for all noise generators.
Definition at line 6 of file NoiseGenerator.java.
|
staticprotected |
Definition at line 22 of file NoiseGenerator.java.
Referenced by org.bukkit.util.noise.PerlinNoiseGenerator.noise().
|
static |
Speedy floor, faster than (int)Math.floor(x)
| x | Value to floor |
Definition at line 18 of file NoiseGenerator.java.
Referenced by org.bukkit.util.noise.PerlinNoiseGenerator.noise(), and org.bukkit.util.noise.SimplexNoiseGenerator.noise().
|
staticprotected |
Definition at line 30 of file NoiseGenerator.java.
Referenced by org.bukkit.util.noise.PerlinNoiseGenerator.noise().
|
staticprotected |
Definition at line 26 of file NoiseGenerator.java.
Referenced by org.bukkit.util.noise.PerlinNoiseGenerator.noise().
| double org.bukkit.util.noise.NoiseGenerator.noise | ( | double | x | ) |
Computes and returns the 1D noise for the given coordinate in 1D space.
| x | X coordinate |
Definition at line 43 of file NoiseGenerator.java.
Referenced by org.bukkit.util.noise.NoiseGenerator.noise().
| double org.bukkit.util.noise.NoiseGenerator.noise | ( | double | x, |
| double | y | ||
| ) |
Computes and returns the 2D noise for the given coordinates in 2D space.
| x | X coordinate |
| y | Y coordinate |
Definition at line 54 of file NoiseGenerator.java.
References org.bukkit.util.noise.NoiseGenerator.noise().
|
pure virtual |
Computes and returns the 3D noise for the given coordinates in 3D space.
| x | X coordinate |
| y | Y coordinate |
| z | Z coordinate |
Implemented in org.bukkit.util.noise.SimplexNoiseGenerator, and org.bukkit.util.noise.PerlinNoiseGenerator.
| double org.bukkit.util.noise.NoiseGenerator.noise | ( | double | x, |
| int | octaves, | ||
| double | frequency, | ||
| double | amplitude | ||
| ) |
Generates noise for the 1D coordinates using the specified number of octaves and parameters.
| x | X-coordinate |
| octaves | Number of octaves to use |
| frequency | How much to alter the frequency by each octave |
| amplitude | How much to alter the amplitude by each octave |
Definition at line 77 of file NoiseGenerator.java.
References org.bukkit.util.noise.NoiseGenerator.noise().
| double org.bukkit.util.noise.NoiseGenerator.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.
| x | X-coordinate |
| octaves | Number of octaves to use |
| frequency | How much to alter the frequency by each octave |
| amplitude | How much to alter the amplitude by each octave |
| normalized | If true, normalize the value to [-1, 1] |
Definition at line 91 of file NoiseGenerator.java.
References org.bukkit.util.noise.NoiseGenerator.noise().
| double org.bukkit.util.noise.NoiseGenerator.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.
| x | X-coordinate |
| y | Y-coordinate |
| octaves | Number of octaves to use |
| frequency | How much to alter the frequency by each octave |
| amplitude | How much to alter the amplitude by each octave |
Definition at line 105 of file NoiseGenerator.java.
References org.bukkit.util.noise.NoiseGenerator.noise().
| double org.bukkit.util.noise.NoiseGenerator.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.
| x | X-coordinate |
| y | Y-coordinate |
| octaves | Number of octaves to use |
| frequency | How much to alter the frequency by each octave |
| amplitude | How much to alter the amplitude by each octave |
| normalized | If true, normalize the value to [-1, 1] |
Definition at line 120 of file NoiseGenerator.java.
References org.bukkit.util.noise.NoiseGenerator.noise().
| double org.bukkit.util.noise.NoiseGenerator.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.
| x | X-coordinate |
| y | Y-coordinate |
| z | Z-coordinate |
| octaves | Number of octaves to use |
| frequency | How much to alter the frequency by each octave |
| amplitude | How much to alter the amplitude by each octave |
Definition at line 135 of file NoiseGenerator.java.
References org.bukkit.util.noise.NoiseGenerator.noise().
| double org.bukkit.util.noise.NoiseGenerator.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.
| x | X-coordinate |
| y | Y-coordinate |
| z | Z-coordinate |
| octaves | Number of octaves to use |
| frequency | How much to alter the frequency by each octave |
| amplitude | How much to alter the amplitude by each octave |
| normalized | If true, normalize the value to [-1, 1] |
Definition at line 151 of file NoiseGenerator.java.
References org.bukkit.util.noise.NoiseGenerator.noise().
|
protected |
Definition at line 8 of file NoiseGenerator.java.
Referenced by org.bukkit.util.noise.PerlinNoiseGenerator.noise(), org.bukkit.util.noise.SimplexNoiseGenerator.noise(), and org.bukkit.util.noise.PerlinNoiseGenerator.PerlinNoiseGenerator().
|
protected |
Definition at line 9 of file NoiseGenerator.java.
Referenced by org.bukkit.util.noise.PerlinNoiseGenerator.noise(), org.bukkit.util.noise.SimplexNoiseGenerator.noise(), and org.bukkit.util.noise.PerlinNoiseGenerator.PerlinNoiseGenerator().
|
protected |
Definition at line 10 of file NoiseGenerator.java.
Referenced by org.bukkit.util.noise.PerlinNoiseGenerator.noise(), org.bukkit.util.noise.SimplexNoiseGenerator.noise(), and org.bukkit.util.noise.PerlinNoiseGenerator.PerlinNoiseGenerator().
|
protected |
Definition at line 7 of file NoiseGenerator.java.
Referenced by org.bukkit.util.noise.PerlinNoiseGenerator.noise(), org.bukkit.util.noise.SimplexNoiseGenerator.noise(), and org.bukkit.util.noise.PerlinNoiseGenerator.PerlinNoiseGenerator().