public class PerlinNoiseGenerator extends NoiseGenerator
原文:Generates noise using the "classic" perlin generator
"升级的" 和更快的版本且只有微小的不同
限定符和类型 | 字段和说明 |
---|---|
protected static int[][] |
grad3 |
offsetX, offsetY, offsetZ, perm
限定符 | 构造器和说明 |
---|---|
protected |
PerlinNoiseGenerator() |
|
PerlinNoiseGenerator(long seed)
使用给定的种子创建一个已设种子的PerlinNoiseGenerator.
|
|
PerlinNoiseGenerator(java.util.Random rand)
使用给定的Random创建一个已设种子的PerlinNoiseGenerator.
|
|
PerlinNoiseGenerator(World world)
使用给定的World创建一个已设种子的PerlinNoiseGenerator.
|
限定符和类型 | 方法和说明 |
---|---|
static PerlinNoiseGenerator |
getInstance()
获取独立的没有种子的此发生器实例.
|
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)
使用特殊的数个倍频和参数产生一个三维坐标的噪音.
|
static double |
getNoise(double x,
double y,
int octaves,
double frequency,
double amplitude)
使用特殊的数个倍频和参数产生一个二维坐标的噪音.
|
static double |
getNoise(double x,
int octaves,
double frequency,
double amplitude)
使用特殊的数个倍频和参数产生一个一维坐标的噪音.
|
double |
noise(double x,
double y,
double z)
计算并返回给定坐标在三维空间中的三维噪音。
|
protected PerlinNoiseGenerator()
public PerlinNoiseGenerator(World world)
使用World的种子作为Generator的种子.
原文:Creates a seeded perlin noise generator for the given world
world
- 创建这个发生器的World实例public PerlinNoiseGenerator(long seed)
原文:Creates a seeded perlin noise generator for the given seed
seed
- 创建这个发生器的long型种子public PerlinNoiseGenerator(java.util.Random rand)
原文:Creates a seeded perlin noise generator with the given Random
rand
- 创建这个Generator的Randompublic static double getNoise(double x)
原文:Computes and returns the 1D unseeded perlin noise for the given coordinates in 1D space
x
- X坐标public static double getNoise(double x, double y)
原文:Computes and returns the 2D unseeded perlin noise for the given coordinates in 2D space
x
- X坐标y
- Y坐标public static double getNoise(double x, double y, double z)
原文:Computes and returns the 3D unseeded perlin noise for the given coordinates in 3D space
x
- X坐标y
- Y坐标z
- Z坐标public static PerlinNoiseGenerator getInstance()
原文:Gets the singleton unseeded instance of this generator
public double noise(double x, double y, double z)
NoiseGenerator
原文:Computes and returns the 3D noise for the given coordinates in 3D space
noise
在类中 NoiseGenerator
x
- X坐标y
- Y坐标z
- Z坐标public 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
x
- X坐标octaves
- 使用的倍频值frequency
- 每一个倍频改变多少频率amplitude
- 每一个倍频改变多少振幅public 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
x
- X坐标y
- Y坐标octaves
- 使用的倍频值frequency
- 每一个倍频改变多少频率amplitude
- 每一个倍频改变多少振幅public 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
x
- X坐标y
- Y坐标z
- Z坐标octaves
- 使用的倍频值frequency
- 每一个倍频改变多少频率amplitude
- 每一个倍频改变多少振幅