API reference / @jsprismarine/worldgen / SimplexNoise
Class: SimplexNoise
Defined in: noise/SimplexNoise.ts:17
Simplex noise, which Java Edition uses only for the outer end islands.
Unlike Perlin noise, the corner contributions are computed in double precision and only the result narrows to float.
Extends
Constructors
Constructor
new SimplexNoise(
random,discardNoiseOffset?):SimplexNoise
Defined in: noise/SimplexNoise.ts:25
Parameters
random
discardNoiseOffset?
boolean = false
When true the three random coordinate offsets are drawn but scaled to zero, which is how the end island generator seeds its instance.
Returns
SimplexNoise
Overrides
GradientNoise.constructor
Properties
offsetX
readonlyoffsetX:number
Defined in: noise/GradientNoise.ts:58
The random offset applied to the x coordinate before lookup.
Inherited from
offsetY
readonlyoffsetY:number
Defined in: noise/GradientNoise.ts:60
The random offset applied to the y coordinate before lookup.
Inherited from
offsetZ
readonlyoffsetZ:number
Defined in: noise/GradientNoise.ts:62
The random offset applied to the z coordinate before lookup.
Inherited from
STANDARD_DEVIATION
readonlystaticSTANDARD_DEVIATION:0.42544=0.42544
Defined in: noise/SimplexNoise.ts:19
The standard deviation of one simplex octave.
Methods
get2()
get2(
x,z):number
Defined in: noise/SimplexNoise.ts:30
Samples at a 2D position, which Java treats as y = 0.
Parameters
x
number
z
number
Returns
number
Overrides
get3()
get3(
x,y,z):number
Defined in: noise/SimplexNoise.ts:57
Samples at a 3D position.
Parameters
x
number
y
number
z
number
Returns
number