SimplexNoiseGenerator
public class PerlinNoiseGenerator extends NoiseGenerator
Modifier and Type | Field | Description |
---|---|---|
protected static int[][] |
grad3 |
offsetX, offsetY, offsetZ, perm
Modifier | Constructor | Description |
---|---|---|
protected |
PerlinNoiseGenerator() |
|
|
PerlinNoiseGenerator(long seed) |
Creates a seeded perlin noise generator for the given seed
|
|
PerlinNoiseGenerator(java.util.Random rand) |
Creates a seeded perlin noise generator with the given Random
|
|
PerlinNoiseGenerator(World world) |
Creates a seeded perlin noise generator for the given world
|
Modifier and Type | Method | Description |
---|---|---|
static PerlinNoiseGenerator |
getInstance() |
Gets the singleton unseeded instance of this generator
|
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 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 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,
int octaves,
double frequency,
double amplitude) |
Generates noise for the 1D coordinates using the specified number of
octaves and parameters
|
double |
noise(double x,
double y,
double z) |
Computes and returns the 3D noise for the given coordinates in 3D space
|
protected PerlinNoiseGenerator()
public PerlinNoiseGenerator(World world)
world
- World to construct this generator forpublic PerlinNoiseGenerator(long seed)
seed
- Seed to construct this generator forpublic PerlinNoiseGenerator(java.util.Random rand)
rand
- Random to construct withpublic static double getNoise(double x)
x
- X coordinatepublic static double getNoise(double x, double y)
x
- X coordinatey
- Y coordinatepublic static double getNoise(double x, double y, double z)
x
- X coordinatey
- Y coordinatez
- Z coordinatepublic static PerlinNoiseGenerator getInstance()
public double noise(double x, double y, double z)
NoiseGenerator
noise
in class NoiseGenerator
x
- X coordinatey
- Y coordinatez
- Z coordinatepublic static double getNoise(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 octavepublic static double getNoise(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 octavepublic static double getNoise(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 octaveCopyright © 2018. All rights reserved.