![]() |
Bukkit
1.4.7-R1.0
|
Generates simplex-based noise. More...
Inheritance diagram for org.bukkit.util.noise.SimplexNoiseGenerator:
Collaboration diagram for org.bukkit.util.noise.SimplexNoiseGenerator:Public Member Functions | |
| SimplexNoiseGenerator (World world) | |
| Creates a seeded simplex noise generator for the given world. | |
| SimplexNoiseGenerator (long seed) | |
| Creates a seeded simplex noise generator for the given seed. | |
| SimplexNoiseGenerator (Random rand) | |
| Creates a seeded simplex noise generator with the given Random. | |
| double | noise (double xin, double yin, double zin) |
| Computes and returns the 3D noise for the given coordinates in 3D space. | |
| double | noise (double xin, double yin) |
| double | noise (double x, double y, double z, double w) |
| Computes and returns the 4D simplex noise for the given coordinates in 4D space. | |
Public Member Functions inherited from org.bukkit.util.noise.PerlinNoiseGenerator | |
| PerlinNoiseGenerator (World world) | |
| Creates a seeded perlin noise generator for the given world. | |
| PerlinNoiseGenerator (long seed) | |
| Creates a seeded perlin noise generator for the given seed. | |
| PerlinNoiseGenerator (Random rand) | |
| Creates a seeded perlin noise generator with the given Random. | |
Public Member Functions inherited from org.bukkit.util.noise.NoiseGenerator | |
| 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. | |
| 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 double | getNoise (double xin) |
| Computes and returns the 1D unseeded simplex noise for the given coordinates in 1D space. | |
| static double | getNoise (double xin, double yin) |
| Computes and returns the 2D unseeded simplex noise for the given coordinates in 2D space. | |
| static double | getNoise (double xin, double yin, double zin) |
| Computes and returns the 3D unseeded simplex noise for the given coordinates in 3D space. | |
| static double | getNoise (double x, double y, double z, double w) |
| Computes and returns the 4D simplex noise for the given coordinates in 4D space. | |
| static SimplexNoiseGenerator | getInstance () |
| Gets the singleton unseeded instance of this generator. | |
Static Public Member Functions inherited from org.bukkit.util.noise.PerlinNoiseGenerator | |
| static double | getNoise (double x) |
| Computes and returns the 1D unseeded perlin noise for the given coordinates in 1D space. | |
| static double | getNoise (double x, double y) |
| Computes and returns the 2D unseeded perlin noise for the given coordinates in 2D space. | |
| static double | getNoise (double x, double y, double z) |
| Computes and returns the 3D unseeded perlin noise for the given coordinates in 3D space. | |
| static PerlinNoiseGenerator | getInstance () |
| Gets the singleton unseeded instance of this generator. | |
| static double | getNoise (double x, int octaves, double frequency, double amplitude) |
| Generates noise for the 1D coordinates using the specified number of octaves and parameters. | |
| static double | getNoise (double x, double y, int octaves, double frequency, double amplitude) |
| Generates noise for the 2D coordinates using the specified number of octaves and parameters. | |
| static double | getNoise (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. | |
Static Public Member Functions inherited from org.bukkit.util.noise.NoiseGenerator | |
| static int | floor (double x) |
| Speedy floor, faster than (int)Math.floor(x) | |
Protected Member Functions | |
| SimplexNoiseGenerator () | |
Protected Member Functions inherited from org.bukkit.util.noise.PerlinNoiseGenerator | |
| PerlinNoiseGenerator () | |
Static Protected Member Functions | |
| static double | dot (int g[], double x, double y) |
| static double | dot (int g[], double x, double y, double z) |
| static double | dot (int g[], double x, double y, double z, double w) |
Static Protected Attributes | |
| static final double | SQRT_3 = Math.sqrt(3) |
| static final double | SQRT_5 = Math.sqrt(5) |
| static final double | F2 = 0.5 * (SQRT_3 - 1) |
| static final double | G2 = (3 - SQRT_3) / 6 |
| static final double | G22 = G2 * 2.0 - 1 |
| static final double | F3 = 1.0 / 3.0 |
| static final double | G3 = 1.0 / 6.0 |
| static final double | F4 = (SQRT_5 - 1.0) / 4.0 |
| static final double | G4 = (5.0 - SQRT_5) / 20.0 |
| static final double | G42 = G4 * 2.0 |
| static final double | G43 = G4 * 3.0 |
| static final double | G44 = G4 * 4.0 - 1.0 |
| static final int | grad4 [][] |
| static final int | simplex [][] |
| static double | offsetW |
Static Protected Attributes inherited from org.bukkit.util.noise.PerlinNoiseGenerator | |
| static final int | grad3 [][] |
Additional Inherited Members | |
Protected Attributes inherited from org.bukkit.util.noise.NoiseGenerator | |
| final int | perm [] = new int[512] |
| double | offsetX |
| double | offsetY |
| double | offsetZ |
Generates simplex-based noise.
This is a modified version of the freely published version in the paper by Stefan Gustavson at http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
Definition at line 12 of file SimplexNoiseGenerator.java.
|
protected |
Definition at line 45 of file SimplexNoiseGenerator.java.
| org.bukkit.util.noise.SimplexNoiseGenerator.SimplexNoiseGenerator | ( | World | world | ) |
Creates a seeded simplex noise generator for the given world.
| world | World to construct this generator for |
Definition at line 54 of file SimplexNoiseGenerator.java.
References org.bukkit.World.getSeed().
| org.bukkit.util.noise.SimplexNoiseGenerator.SimplexNoiseGenerator | ( | long | seed | ) |
Creates a seeded simplex noise generator for the given seed.
| seed | Seed to construct this generator for |
Definition at line 63 of file SimplexNoiseGenerator.java.
| org.bukkit.util.noise.SimplexNoiseGenerator.SimplexNoiseGenerator | ( | Random | rand | ) |
Creates a seeded simplex noise generator with the given Random.
| rand | Random to construct with |
Definition at line 72 of file SimplexNoiseGenerator.java.
References org.bukkit.util.noise.SimplexNoiseGenerator.offsetW.
|
staticprotected |
Definition at line 77 of file SimplexNoiseGenerator.java.
Referenced by org.bukkit.util.noise.SimplexNoiseGenerator.noise().
|
staticprotected |
Definition at line 81 of file SimplexNoiseGenerator.java.
|
staticprotected |
Definition at line 85 of file SimplexNoiseGenerator.java.
|
static |
Gets the singleton unseeded instance of this generator.
Definition at line 510 of file SimplexNoiseGenerator.java.
|
static |
Computes and returns the 1D unseeded simplex noise for the given coordinates in 1D space.
| xin | X coordinate |
Definition at line 95 of file SimplexNoiseGenerator.java.
References org.bukkit.util.noise.SimplexNoiseGenerator.noise().
|
static |
Computes and returns the 2D unseeded simplex noise for the given coordinates in 2D space.
| xin | X coordinate |
| yin | Y coordinate |
Definition at line 106 of file SimplexNoiseGenerator.java.
References org.bukkit.util.noise.SimplexNoiseGenerator.noise().
|
static |
Computes and returns the 3D unseeded simplex noise for the given coordinates in 3D space.
| xin | X coordinate |
| yin | Y coordinate |
| zin | Z coordinate |
Definition at line 118 of file SimplexNoiseGenerator.java.
References org.bukkit.util.noise.SimplexNoiseGenerator.noise().
|
static |
Computes and returns the 4D simplex noise for the given coordinates in 4D space.
| x | X coordinate |
| y | Y coordinate |
| z | Z coordinate |
| w | W coordinate |
Definition at line 131 of file SimplexNoiseGenerator.java.
References org.bukkit.util.noise.SimplexNoiseGenerator.noise().
|
virtual |
Computes and returns the 3D noise for the given coordinates in 3D space.
| x | X coordinate |
| y | Y coordinate |
| z | Z coordinate |
Reimplemented from org.bukkit.util.noise.PerlinNoiseGenerator.
Definition at line 136 of file SimplexNoiseGenerator.java.
References org.bukkit.util.noise.SimplexNoiseGenerator.dot(), org.bukkit.util.noise.SimplexNoiseGenerator.F3, org.bukkit.util.noise.NoiseGenerator.floor(), org.bukkit.util.noise.SimplexNoiseGenerator.G3, org.bukkit.util.noise.PerlinNoiseGenerator.grad3, org.bukkit.util.noise.NoiseGenerator.offsetX, org.bukkit.util.noise.NoiseGenerator.offsetY, org.bukkit.util.noise.NoiseGenerator.offsetZ, and org.bukkit.util.noise.NoiseGenerator.perm.
Referenced by org.bukkit.util.noise.SimplexNoiseGenerator.getNoise().
| double org.bukkit.util.noise.SimplexNoiseGenerator.noise | ( | double | xin, |
| double | yin | ||
| ) |
Definition at line 275 of file SimplexNoiseGenerator.java.
References org.bukkit.util.noise.SimplexNoiseGenerator.dot(), org.bukkit.util.noise.SimplexNoiseGenerator.F2, org.bukkit.util.noise.NoiseGenerator.floor(), org.bukkit.util.noise.SimplexNoiseGenerator.G2, org.bukkit.util.noise.SimplexNoiseGenerator.G22, org.bukkit.util.noise.PerlinNoiseGenerator.grad3, org.bukkit.util.noise.NoiseGenerator.offsetX, org.bukkit.util.noise.NoiseGenerator.offsetY, and org.bukkit.util.noise.NoiseGenerator.perm.
| double org.bukkit.util.noise.SimplexNoiseGenerator.noise | ( | double | x, |
| double | y, | ||
| double | z, | ||
| double | w | ||
| ) |
Computes and returns the 4D simplex noise for the given coordinates in 4D space.
| x | X coordinate |
| y | Y coordinate |
| z | Z coordinate |
| w | W coordinate |
Definition at line 359 of file SimplexNoiseGenerator.java.
References org.bukkit.util.noise.SimplexNoiseGenerator.dot(), org.bukkit.util.noise.SimplexNoiseGenerator.F4, org.bukkit.util.noise.NoiseGenerator.floor(), org.bukkit.util.noise.SimplexNoiseGenerator.G4, org.bukkit.util.noise.SimplexNoiseGenerator.G42, org.bukkit.util.noise.SimplexNoiseGenerator.G43, org.bukkit.util.noise.SimplexNoiseGenerator.G44, org.bukkit.util.noise.SimplexNoiseGenerator.grad4, org.bukkit.util.noise.SimplexNoiseGenerator.offsetW, org.bukkit.util.noise.NoiseGenerator.offsetX, org.bukkit.util.noise.NoiseGenerator.offsetY, org.bukkit.util.noise.NoiseGenerator.offsetZ, org.bukkit.util.noise.NoiseGenerator.perm, and org.bukkit.util.noise.SimplexNoiseGenerator.simplex.
|
staticprotected |
Definition at line 15 of file SimplexNoiseGenerator.java.
Referenced by org.bukkit.util.noise.SimplexNoiseGenerator.noise().
|
staticprotected |
Definition at line 18 of file SimplexNoiseGenerator.java.
Referenced by org.bukkit.util.noise.SimplexNoiseGenerator.noise().
|
staticprotected |
Definition at line 20 of file SimplexNoiseGenerator.java.
Referenced by org.bukkit.util.noise.SimplexNoiseGenerator.noise().
|
staticprotected |
Definition at line 16 of file SimplexNoiseGenerator.java.
Referenced by org.bukkit.util.noise.SimplexNoiseGenerator.noise().
|
staticprotected |
Definition at line 17 of file SimplexNoiseGenerator.java.
Referenced by org.bukkit.util.noise.SimplexNoiseGenerator.noise().
|
staticprotected |
Definition at line 19 of file SimplexNoiseGenerator.java.
Referenced by org.bukkit.util.noise.SimplexNoiseGenerator.noise().
|
staticprotected |
Definition at line 21 of file SimplexNoiseGenerator.java.
Referenced by org.bukkit.util.noise.SimplexNoiseGenerator.noise().
|
staticprotected |
Definition at line 22 of file SimplexNoiseGenerator.java.
Referenced by org.bukkit.util.noise.SimplexNoiseGenerator.noise().
|
staticprotected |
Definition at line 23 of file SimplexNoiseGenerator.java.
Referenced by org.bukkit.util.noise.SimplexNoiseGenerator.noise().
|
staticprotected |
Definition at line 24 of file SimplexNoiseGenerator.java.
Referenced by org.bukkit.util.noise.SimplexNoiseGenerator.noise().
|
staticprotected |
Definition at line 25 of file SimplexNoiseGenerator.java.
Referenced by org.bukkit.util.noise.SimplexNoiseGenerator.noise().
|
staticprotected |
Definition at line 42 of file SimplexNoiseGenerator.java.
Referenced by org.bukkit.util.noise.SimplexNoiseGenerator.noise(), and org.bukkit.util.noise.SimplexNoiseGenerator.SimplexNoiseGenerator().
|
staticprotected |
Definition at line 33 of file SimplexNoiseGenerator.java.
Referenced by org.bukkit.util.noise.SimplexNoiseGenerator.noise().
|
staticprotected |
Definition at line 13 of file SimplexNoiseGenerator.java.
|
staticprotected |
Definition at line 14 of file SimplexNoiseGenerator.java.