类 SimplexNoiseGenerator
原文:Generates simplex-based noise.
这是一个免费发布的修正版论文,作者是Stefan Gustavson,链接: http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf.
原文: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
-
字段概要
修饰符和类型字段说明protected static final double
protected static final double
protected static final double
protected static final double
protected static final double
protected static final double
protected static final double
protected static final double
protected static final double
protected static final double
protected static final int[][]
protected double
protected static final int[][]
protected static final double
protected static final double
从类继承的字段 org.bukkit.util.noise.PerlinNoiseGenerator
grad3
从类继承的字段 org.bukkit.util.noise.NoiseGenerator
offsetX, offsetY, offsetZ, perm
-
构造器概要
限定符构造器说明protected
SimplexNoiseGenerator
(long seed) 使用给定的种子创建一个已设种子的SimplexNoiseGenerator.SimplexNoiseGenerator
(Random rand) 使用给定的Random创建一个已设种子的SimplexNoiseGenerator.SimplexNoiseGenerator
(World world) 使用给定的World创建一个已设种子的SimplexNoiseGenerator. -
方法概要
修饰符和类型方法说明protected static double
dot
(int[] g, double x, double y) protected static double
dot
(int[] g, double x, double y, double z) protected static double
dot
(int[] g, double x, double y, double z, double w) static SimplexNoiseGenerator
获取单独的未设种子的此类Generator的实例.static double
getNoise
(double xin) 给定一维空间坐标计算并返回一维的未设种子的单纯形噪声.static double
getNoise
(double xin, double yin) 给定二维空间坐标计算并返回二维的未设种子的单纯形噪声.static double
getNoise
(double xin, double yin, double zin) 给定三维空间坐标计算并返回三维的未设种子的单纯形噪声.static double
getNoise
(double x, double y, double z, double w) 给定四维空间坐标计算并返回四维的单纯形噪声.double
noise
(double xin, double yin) 计算并返回给定坐标在二维空间中的二维噪音。double
noise
(double xin, double yin, double zin) 计算并返回给定坐标在三维空间中的三维噪音。double
noise
(double x, double y, double z, double w) 计算并返回四维的单纯形噪声对于给定的四维空间坐标.从类继承的方法 org.bukkit.util.noise.PerlinNoiseGenerator
getNoise, getNoise, getNoise
-
字段详细资料
-
SQRT_3
protected static final double SQRT_3 -
SQRT_5
protected static final double SQRT_5 -
F2
protected static final double F2 -
G2
protected static final double G2 -
G22
protected static final double G22 -
F3
protected static final double F3- 另请参阅:
-
G3
protected static final double G3- 另请参阅:
-
F4
protected static final double F4 -
G4
protected static final double G4 -
G42
protected static final double G42 -
G43
protected static final double G43 -
G44
protected static final double G44 -
grad4
protected static final int[][] grad4 -
simplex
protected static final int[][] simplex -
offsetW
protected double offsetW
-
-
构造器详细资料
-
SimplexNoiseGenerator
protected SimplexNoiseGenerator() -
SimplexNoiseGenerator
使用给定的World创建一个已设种子的SimplexNoiseGenerator.原文:Creates a seeded simplex noise generator for the given world
- 参数:
world
- 创建这个Generator的World实例
-
SimplexNoiseGenerator
public SimplexNoiseGenerator(long seed) 使用给定的种子创建一个已设种子的SimplexNoiseGenerator.原文:Creates a seeded simplex noise generator for the given seed
- 参数:
seed
- 创建这个Generator的long型种子
-
SimplexNoiseGenerator
使用给定的Random创建一个已设种子的SimplexNoiseGenerator.原文:Creates a seeded simplex noise generator with the given Random
- 参数:
rand
- 创建这个Generator的Random
-
-
方法详细资料
-
dot
protected static double dot(int[] g, double x, double y) -
dot
protected static double dot(int[] g, double x, double y, double z) -
dot
protected static double dot(int[] g, double x, double y, double z, double w) -
getNoise
public static double getNoise(double xin) 给定一维空间坐标计算并返回一维的未设种子的单纯形噪声.原文:Computes and returns the 1D unseeded simplex noise for the given coordinates in 1D space
- 参数:
xin
- X坐标- 返回:
- 给定坐标的噪音,取值范围 -1 到 1
-
getNoise
public static double getNoise(double xin, double yin) 给定二维空间坐标计算并返回二维的未设种子的单纯形噪声.原文:Computes and returns the 2D unseeded simplex noise for the given coordinates in 2D space
- 参数:
xin
- X坐标yin
- Y坐标- 返回:
- 给定坐标的噪音,取值范围 -1 到 1
-
getNoise
public static double getNoise(double xin, double yin, double zin) 给定三维空间坐标计算并返回三维的未设种子的单纯形噪声.原文:Computes and returns the 3D unseeded simplex noise for the given coordinates in 3D space
- 参数:
xin
- X坐标yin
- Y坐标zin
- Z坐标- 返回:
- 给定坐标的噪音,取值范围 -1 到 1
-
getNoise
public 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
- 参数:
x
- X坐标y
- Y坐标z
- Z坐标w
- W坐标- 返回:
- 给定坐标的噪音,取值范围 -1 到 1
-
noise
public double noise(double xin, double yin, double zin) 从类复制的说明:NoiseGenerator
计算并返回给定坐标在三维空间中的三维噪音。原文:Computes and returns the 3D noise for the given coordinates in 3D space
- 覆盖:
noise
在类中PerlinNoiseGenerator
- 参数:
xin
- X坐标yin
- Y坐标zin
- Z坐标- 返回:
- 给定位置的噪音, 取值范围 -1 到 1
-
noise
public double noise(double xin, double yin) 从类复制的说明:NoiseGenerator
计算并返回给定坐标在二维空间中的二维噪音。原文:Computes and returns the 2D noise for the given coordinates in 2D space
- 覆盖:
noise
在类中NoiseGenerator
- 参数:
xin
- X坐标yin
- Y坐标- 返回:
- 给定位置的噪音, 取值范围 -1 到 1
-
noise
public double 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坐标y
- Y坐标z
- Z坐标w
- W坐标- 返回:
- 给定坐标的噪音,取值范围 -1 到 1
-
getInstance
获取单独的未设种子的此类Generator的实例.原文:Gets the singleton unseeded instance of this generator
- 返回:
- 单独的实例
-