类 Noise

    • 构造器概要

      构造器 
      构造器 说明
      Noise()  
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      float evaluate​(float x)  
      float evaluate​(float x, float y)  
      float evaluate​(float x, float y, float z)  
      static float[] findRange​(Function1D f, float[] minmax)
      Returns the minimum and maximum of a number of random values of the given function.
      static float[] findRange​(Function2D f, float[] minmax)
      Returns the minimum and maximum of a number of random values of the given function.
      static float lerp​(float t, float a, float b)  
      static float noise1​(float x)
      Compute 1-dimensional Perlin noise.
      static float noise2​(float x, float y)
      Compute 2-dimensional Perlin noise.
      static float noise3​(float x, float y, float z)
      Compute 3-dimensional Perlin noise.
      static float turbulence2​(float x, float y, float octaves)
      Compute turbulence using Perlin noise.
      static float turbulence3​(float x, float y, float z, float octaves)
      Compute turbulence using Perlin noise.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • Noise

        public Noise()
    • 方法详细资料

      • evaluate

        public float evaluate​(float x)
        指定者:
        evaluate 在接口中 Function1D
      • evaluate

        public float evaluate​(float x,
                              float y)
        指定者:
        evaluate 在接口中 Function2D
      • evaluate

        public float evaluate​(float x,
                              float y,
                              float z)
        指定者:
        evaluate 在接口中 Function3D
      • turbulence2

        public static float turbulence2​(float x,
                                        float y,
                                        float octaves)
        Compute turbulence using Perlin noise.
        参数:
        x - the x value
        y - the y value
        octaves - number of octaves of turbulence
        返回:
        turbulence value at (x,y)
      • turbulence3

        public static float turbulence3​(float x,
                                        float y,
                                        float z,
                                        float octaves)
        Compute turbulence using Perlin noise.
        参数:
        x - the x value
        y - the y value
        octaves - number of octaves of turbulence
        返回:
        turbulence value at (x,y)
      • noise1

        public static float noise1​(float x)
        Compute 1-dimensional Perlin noise.
        参数:
        x - the x value
        返回:
        noise value at x in the range -1..1
      • noise2

        public static float noise2​(float x,
                                   float y)
        Compute 2-dimensional Perlin noise.
        参数:
        x - the x coordinate
        y - the y coordinate
        返回:
        noise value at (x,y)
      • noise3

        public static float noise3​(float x,
                                   float y,
                                   float z)
        Compute 3-dimensional Perlin noise.
        参数:
        x - the x coordinate
        y - the y coordinate
        y - the y coordinate
        返回:
        noise value at (x,y,z)
      • lerp

        public static float lerp​(float t,
                                 float a,
                                 float b)
      • findRange

        public static float[] findRange​(Function1D f,
                                        float[] minmax)
        Returns the minimum and maximum of a number of random values of the given function. This is useful for making some stab at normalising the function.
      • findRange

        public static float[] findRange​(Function2D f,
                                        float[] minmax)
        Returns the minimum and maximum of a number of random values of the given function. This is useful for making some stab at normalising the function.