public class FastNoiseLite
Class FastNoiseLite. Provides fastnoiselite functionality for the Hytale server.
java.lang.Object > FastNoiseLite
Field Summary
mSeed
Field mSeed.
mFrequency
Field mFrequency.
mNoiseType
Field mNoiseType.
mRotationType3D
Field mRotationType3D.
mTransformType3D
Field mTransformType3D.
mFractalType
Field mFractalType.
mOctaves
Field mOctaves.
mLacunarity
Field mLacunarity.
mGain
Field mGain.
mWeightedStrength
Field mWeightedStrength.
mPingPongStrength
Field mPingPongStrength.
mFractalBounding
Field mFractalBounding.
mCellularDistanceFunction
Field mCellularDistanceFunction.
mCellularReturnType
Field mCellularReturnType.
mCellularJitterModifier
Field mCellularJitterModifier.
mDomainWarpType
Field mDomainWarpType.
mWarpTransformType3D
Field mWarpTransformType3D.
mDomainWarpAmp
Field mDomainWarpAmp.
mDomainWarpFreq
Field mDomainWarpFreq.
SQRT3
Field SQRT3.
F2
Field F2.
t
Field t.
xy
Field xy.
s2
Field s2.
xz
Field xz.
R3
Field R3.
r
Field r.
p
Field p.
gain
Field gain.
xg
Field xg.
yg
Field yg.
zg
Field zg.
noise
Field noise.
G2
Field G2.
xi
Field xi.
yi
Field yi.
x2
Field x2.
y2
Field y2.
a
Field a.
c
Field c.
x3
Field x3.
y3
Field y3.
x4
Field x4.
y4
Field y4.
b
Field b.
i2
Field i2.
j2
Field j2.
a0
Field a0.
a2
Field a2.
xmyi
Field xmyi.
a3
Field a3.
x5
Field x5.
y5
Field y5.
a4
Field a4.
zi
Field zi.
seed2
Field seed2.
xNMask
Field xNMask.
yNMask
Field yNMask.
zNMask
Field zNMask.
z2
Field z2.
z3
Field z3.
xAFlipMask0
Field xAFlipMask0.
yAFlipMask0
Field yAFlipMask0.
zAFlipMask0
Field zAFlipMask0.
xAFlipMask2
Field xAFlipMask2.
yAFlipMask2
Field yAFlipMask2.
zAFlipMask2
Field zAFlipMask2.
z4
Field z4.
z5
Field z5.
a5
Field a5.
x6
Field x6.
y6
Field y6.
z6
Field z6.
a6
Field a6.
x7
Field x7.
y7
Field y7.
z7
Field z7.
a7
Field a7.
x8
Field x8.
y8
Field y8.
z8
Field z8.
a8
Field a8.
x9
Field x9.
y9
Field y9.
z9
Field z9.
aA
Field aA.
xA
Field xA.
yA
Field yA.
zA
Field zA.
aB
Field aB.
xB
Field xB.
yB
Field yB.
zB
Field zB.
aC
Field aC.
xC
Field xC.
yC
Field yC.
zC
Field zC.
a9
Field a9.
x10
Field x10.
y10
Field y10.
z10
Field z10.
a10
Field a10.
x11
Field x11.
y11
Field y11.
z11
Field z11.
aD
Field aD.
xD
Field xD.
yD
Field yD.
zD
Field zD.
xr
Field xr.
yr
Field yr.
zr
Field zr.
hash
Field hash.
idx
Field idx.
vecX
Field vecX.
vecY
Field vecY.
vecZ
Field vecZ.
cellularJitter
Field cellularJitter.
yPrimedBase
Field yPrimedBase.
newDistance
Field newDistance.
zPrimedBase
Field zPrimedBase.
xd0
Field xd0.
yd0
Field yd0.
xd2
Field xd2.
yd2
Field yd2.
xs
Field xs.
ys
Field ys.
xf0
Field xf0.
xf2
Field xf2.
zd0
Field zd0.
zd2
Field zd2.
zs
Field zs.
xf00
Field xf00.
xf3
Field xf3.
xf4
Field xf4.
yf0
Field yf0.
yf2
Field yf2.
seed
Field seed.
amp
Field amp.
freq
Field freq.
xf
Field xf.
yf
Field yf.
lx0x
Field lx0x.
ly0x
Field ly0x.
lx1x
Field lx1x.
ly1x
Field ly1x.
zf
Field zf.
lx0y
Field lx0y.
ly0y
Field ly0y.
lz0y
Field lz0y.
aaaa
Field aaaa.
index1
Field index1.
index2
Field index2.
value
Field value.
xgo
Field xgo.
ygo
Field ygo.
cccc
Field cccc.
hash2
Field hash2.
index3
Field index3.
index4
Field index4.
xg2
Field xg2.
yg2
Field yg2.
value2
Field value2.
xgo2
Field xgo2.
ygo2
Field ygo2.
bbbb
Field bbbb.
hash3
Field hash3.
index5
Field index5.
index6
Field index6.
xg3
Field xg3.
yg3
Field yg3.
value3
Field value3.
xgo3
Field xgo3.
ygo3
Field ygo3.
zgo
Field zgo.
zg2
Field zg2.
zgo2
Field zgo2.
x
Field x.
y
Field y.
z
Field z.
Method Detail
FastNoiseLite
public
FastNoiseLite
()
Method FastNoiseLite.
setSeed
void
setSeed
(final int seed)
Method setSeed.
- Parameters:
final intseed
setFrequency
void
setFrequency
(final float frequency)
Method setFrequency.
- Parameters:
final floatfrequency
SetRotationType3D
void
SetRotationType3D
(final RotationType3D rotationType3D)
Method SetRotationType3D.
- Parameters:
final RotationType3DrotationType3D
setFractalType
void
setFractalType
(final FractalType fractalType)
Method setFractalType.
- Parameters:
final FractalTypefractalType
setFractalOctaves
void
setFractalOctaves
(final int octaves)
Method setFractalOctaves.
- Parameters:
final intoctaves
SetFractalLacunarity
void
SetFractalLacunarity
(final float lacunarity)
Method SetFractalLacunarity.
- Parameters:
final floatlacunarity
SetFractalGain
void
SetFractalGain
(final float gain)
Method SetFractalGain.
- Parameters:
final floatgain
SetFractalWeightedStrength
void
SetFractalWeightedStrength
(final float weightedStrength)
Method SetFractalWeightedStrength.
- Parameters:
final floatweightedStrength
SetFractalPingPongStrength
void
SetFractalPingPongStrength
(final float pingPongStrength)
Method SetFractalPingPongStrength.
- Parameters:
final floatpingPongStrength
setCellularDistanceFunction
void
setCellularDistanceFunction
(final CellularDistanceFunction cellularDistanceFunction)
Method setCellularDistanceFunction.
- Parameters:
final CellularDistanceFunctioncellularDistanceFunction
setCellularReturnType
void
setCellularReturnType
(final CellularReturnType cellularReturnType)
Method setCellularReturnType.
- Parameters:
final CellularReturnTypecellularReturnType
setCellularJitter
void
setCellularJitter
(final float cellularJitter)
Method setCellularJitter.
- Parameters:
final floatcellularJitter
setDomainWarpType
void
setDomainWarpType
(final DomainWarpType domainWarpType)
Method setDomainWarpType.
- Parameters:
final DomainWarpTypedomainWarpType
setDomainWarpAmp
void
setDomainWarpAmp
(final float domainWarpAmp)
Method setDomainWarpAmp.
- Parameters:
final floatdomainWarpAmp
setDomainWarpFreq
void
setDomainWarpFreq
(final float domainWarpFreq)
Method setDomainWarpFreq.
- Parameters:
final floatdomainWarpFreq
getNoise
float
getNoise
(double x, double y)
Method getNoise.
- Parameters:
doublexdoubley
switch
return
switch
(this.mFractalType.ordinal()
Method switch.
- Parameters:
this.mFractalType.ordinal(this.mFractalType.ordinal(
DomainWarp
void
DomainWarp
(@Nonnull final Vector2 coord)
Method DomainWarp.
- Parameters:
@Nonnull final Vector2coord
FastMin
float
FastMin
(final float a, final float b)
Method FastMin.
- Parameters:
final floatafinal floatb
FastMax
float
FastMax
(final float a, final float b)
Method FastMax.
- Parameters:
final floatafinal floatb
FastAbs
float
FastAbs
(final float f)
Method FastAbs.
- Parameters:
final floatf
FastSqrt
float
FastSqrt
(final float f)
Method FastSqrt.
- Parameters:
final floatf
FastFloor
int
FastFloor
(final double f)
Method FastFloor.
- Parameters:
final doublef
fastRound
int
fastRound
(final double f)
Method fastRound.
- Parameters:
final doublef
Lerp
float
Lerp
(final float a, final float b, final float t)
Method Lerp.
- Parameters:
final floatafinal floatbfinal floatt
InterpHermite
float
InterpHermite
(final float t)
Method InterpHermite.
- Parameters:
final floatt
InterpQuintic
float
InterpQuintic
(final float t)
Method InterpQuintic.
- Parameters:
final floatt
CubicLerp
float
CubicLerp
(final float a, final float b, final float c, final float d, final float t)
Method CubicLerp.
- Parameters:
final floatafinal floatbfinal floatcfinal floatdfinal floatt
PingPong
float
PingPong
(float t)
Method PingPong.
- Parameters:
floatt
CalculateFractalBounding
void
CalculateFractalBounding
()
Method CalculateFractalBounding.
hash
int
hash
(final int seed, final int xPrimed, final int yPrimed)
Method hash.
- Parameters:
final intseedfinal intxPrimedfinal intyPrimed
ValCoord
float
ValCoord
(final int seed, final int xPrimed, final int yPrimed)
Method ValCoord.
- Parameters:
final intseedfinal intxPrimedfinal intyPrimed
GradCoord
float
GradCoord
(final int seed, final int xPrimed, final int yPrimed, final float xd, final float yd)
Method GradCoord.
- Parameters:
final intseedfinal intxPrimedfinal intyPrimedfinal floatxdfinal floatyd
GenNoiseSingle
float
GenNoiseSingle
(final int seed, final double x, final double y)
Method GenNoiseSingle.
- Parameters:
final intseedfinal doublexfinal doubley
UpdateTransformType3D
void
UpdateTransformType3D
()
Method UpdateTransformType3D.
UpdateWarpTransformType3D
void
UpdateWarpTransformType3D
()
Method UpdateWarpTransformType3D.
GenFractalFBm
float
GenFractalFBm
(double x, double y)
Method GenFractalFBm.
- Parameters:
doublexdoubley
GenFractalRidged
float
GenFractalRidged
(double x, double y)
Method GenFractalRidged.
- Parameters:
doublexdoubley
GenFractalPingPong
float
GenFractalPingPong
(double x, double y)
Method GenFractalPingPong.
- Parameters:
doublexdoubley
SingleSimplex
float
SingleSimplex
(final int seed, final double x, final double y)
Method SingleSimplex.
- Parameters:
final intseedfinal doublexfinal doubley
SingleOpenSimplex2
float
SingleOpenSimplex2
(int seed, final double x, final double y, final double z)
Method SingleOpenSimplex2.
- Parameters:
intseedfinal doublexfinal doubleyfinal doublez
if
else
if
(ay0 > ax0 && ay0 >= az0)
Method if.
- Parameters:
ay0 > ax0 && ay0 >=az0
SingleOpenSimplex2S
float
SingleOpenSimplex2S
(final int seed, final double x, final double y)
Method SingleOpenSimplex2S.
- Parameters:
final intseedfinal doublexfinal doubley
pointFor
Vector3d
pointFor
(final int seed, final double jitter, final double x, final double y, final double z)
Method pointFor.
- Parameters:
final intseedfinal doublejitterfinal doublexfinal doubleyfinal doublez
SingleCellular
float
SingleCellular
(final int seed, final double x, final double y)
Method SingleCellular.
- Parameters:
final intseedfinal doublexfinal doubley
SinglePerlin
float
SinglePerlin
(final int seed, final double x, final double y)
Method SinglePerlin.
- Parameters:
final intseedfinal doublexfinal doubley
SingleValueCubic
float
SingleValueCubic
(final int seed, final double x, final double y)
Method SingleValueCubic.
- Parameters:
final intseedfinal doublexfinal doubley
SingleValue
float
SingleValue
(final int seed, final double x, final double y)
Method SingleValue.
- Parameters:
final intseedfinal doublexfinal doubley
DoSingleDomainWarp
void
DoSingleDomainWarp
(final int seed, final float amp, final float freq, final double x, final double y, @Nonnull final Vector2 coord)
Method DoSingleDomainWarp.
- Parameters:
final intseedfinal floatampfinal floatfreqfinal doublexfinal doubley@Nonnull final Vector2coord
DomainWarpSingle
void
DomainWarpSingle
(@Nonnull final Vector2 coord)
Method DomainWarpSingle.
- Parameters:
@Nonnull final Vector2coord
DomainWarpFractalProgressive
void
DomainWarpFractalProgressive
(@Nonnull final Vector2 coord)
Method DomainWarpFractalProgressive.
- Parameters:
@Nonnull final Vector2coord
DomainWarpFractalIndependent
void
DomainWarpFractalIndependent
(@Nonnull final Vector2 coord)
Method DomainWarpFractalIndependent.
- Parameters:
@Nonnull final Vector2coord
SingleDomainWarpBasicGrid
void
SingleDomainWarpBasicGrid
(final int seed, final float warpAmp, final float frequency, final double x, final double y, @Nonnull final Vector2 coord)
Method SingleDomainWarpBasicGrid.
- Parameters:
final intseedfinal floatwarpAmpfinal floatfrequencyfinal doublexfinal doubley@Nonnull final Vector2coord
SingleDomainWarpSimplexGradient
void
SingleDomainWarpSimplexGradient
(final int seed, final float warpAmp, final float frequency, double x, double y, @Nonnull final Vector2 coord, final boolean outGradOnly)
Method SingleDomainWarpSimplexGradient.
- Parameters:
final intseedfinal floatwarpAmpfinal floatfrequencydoublexdoubley@Nonnull final Vector2coordfinal booleanoutGradOnly
SingleDomainWarpOpenSimplex2Gradient
void
SingleDomainWarpOpenSimplex2Gradient
(int seed, final float warpAmp, final float frequency, double x, double y, double z, @Nonnull final Vector3 coord, final boolean outGradOnly)
Method SingleDomainWarpOpenSimplex2Gradient.
- Parameters:
intseedfinal floatwarpAmpfinal floatfrequencydoublexdoubleydoublez@Nonnull final Vector3coordfinal booleanoutGradOnly
Vector2
public
Vector2
(final double x, final double y)
Method Vector2.
- Parameters:
final doublexfinal doubley
Vector3
public
Vector3
(final double x, final double y, final double z)
Method Vector3.
- Parameters:
final doublexfinal doubleyfinal doublez