java.lang.Object
cn.nukkit.level.generator.noise.nukkit.f.NoiseF
Direct Known Subclasses:
PerlinF

public abstract class NoiseF extends Object
Author:
DaPorkchop_ (Nukkit Project)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected float
     
    protected float
     
    protected float
     
    protected float
     
    protected float
     
    protected int[]
     
    protected float
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static float
    bilinearLerp(float x, float y, float q00, float q01, float q10, float q11, float x1, float x2, float y1, float y2)
     
    static float
    fade(float x)
     
    static int
    floor(float x)
     
    abstract float
    getNoise2D(float x, float z)
     
    abstract float
    getNoise3D(float x, float y, float z)
     
    static float
    grad(int hash, float x, float y, float z)
     
    static float
    lerp(float x, float y, float z)
     
    static float
    linearLerp(float x, float x1, float x2, float q0, float q1)
     
    float
    noise2D(float x, float z)
     
    float
    noise2D(float x, float z, boolean normalized)
     
    float
    noise3D(float x, float y, float z)
     
    float
    noise3D(float x, float y, float z, boolean normalized)
     
    void
    setOffset(float x, float y, float z)
     
    static float
    trilinearLerp(float x, float y, float z, float q000, float q001, float q010, float q011, float q100, float q101, float q110, float q111, float x1, float x2, float y1, float y2, float z1, float z2)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • perm

      protected int[] perm
    • offsetX

      protected float offsetX
    • offsetY

      protected float offsetY
    • offsetZ

      protected float offsetZ
    • octaves

      protected float octaves
    • persistence

      protected float persistence
    • expansion

      protected float expansion
  • Constructor Details

    • NoiseF

      public NoiseF()
  • Method Details

    • floor

      public static int floor(float x)
    • fade

      public static float fade(float x)
    • lerp

      public static float lerp(float x, float y, float z)
    • linearLerp

      public static float linearLerp(float x, float x1, float x2, float q0, float q1)
    • bilinearLerp

      public static float bilinearLerp(float x, float y, float q00, float q01, float q10, float q11, float x1, float x2, float y1, float y2)
    • trilinearLerp

      public static float trilinearLerp(float x, float y, float z, float q000, float q001, float q010, float q011, float q100, float q101, float q110, float q111, float x1, float x2, float y1, float y2, float z1, float z2)
    • grad

      public static float grad(int hash, float x, float y, float z)
    • getNoise2D

      public abstract float getNoise2D(float x, float z)
    • getNoise3D

      public abstract float getNoise3D(float x, float y, float z)
    • noise2D

      public float noise2D(float x, float z)
    • noise2D

      public float noise2D(float x, float z, boolean normalized)
    • noise3D

      public float noise3D(float x, float y, float z)
    • noise3D

      public float noise3D(float x, float y, float z, boolean normalized)
    • setOffset

      public void setOffset(float x, float y, float z)