public class SimplexNoiseGenerator extends PerlinNoiseGenerator
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
| Constructor and Description |
|---|
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
|
SimplexNoiseGenerator(World world)
Creates a seeded simplex noise generator for the given world
|
| Modifier and Type | Method and Description |
|---|---|
static SimplexNoiseGenerator |
getInstance()
Gets the singleton unseeded instance of this generator
|
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
|
double |
noise(double xin,
double yin)
Computes and returns the 2D noise for the given coordinates in 2D space
|
double |
noise(double xin,
double yin,
double zin)
Computes and returns the 3D noise for the given coordinates in 3D space
|
double |
noise(double x,
double y,
double z,
double w)
Computes and returns the 4D simplex noise for the given coordinates in
4D space
|
getNoise, getNoise, getNoisepublic SimplexNoiseGenerator(World world)
world - World to construct this generator forpublic SimplexNoiseGenerator(long seed)
seed - Seed to construct this generator forpublic SimplexNoiseGenerator(Random rand)
rand - Random to construct withpublic static double getNoise(double xin)
xin - X coordinatepublic static double getNoise(double xin,
double yin)
xin - X coordinateyin - Y coordinatepublic static double getNoise(double xin,
double yin,
double zin)
xin - X coordinateyin - Y coordinatezin - Z coordinatepublic static double getNoise(double x,
double y,
double z,
double w)
x - X coordinatey - Y coordinatez - Z coordinatew - W coordinatepublic double noise(double xin,
double yin,
double zin)
NoiseGeneratornoise in class PerlinNoiseGeneratorxin - X coordinateyin - Y coordinatezin - Z coordinatepublic double noise(double xin,
double yin)
NoiseGeneratornoise in class NoiseGeneratorxin - X coordinateyin - Y coordinatepublic double noise(double x,
double y,
double z,
double w)
x - X coordinatey - Y coordinatez - Z coordinatew - W coordinatepublic static SimplexNoiseGenerator getInstance()
Copyright © 2022. All rights reserved.