Class FBM

  • All Implemented Interfaces:
    Function2D

    public class FBM
    extends java.lang.Object
    implements Function2D
    • Constructor Summary

      Constructors 
      Constructor Description
      FBM​(float H, float lacunarity, float octaves)  
      FBM​(float H, float lacunarity, float octaves, Function2D basis)  
    • Field Detail

      • exponents

        protected float[] exponents
      • H

        protected float H
      • lacunarity

        protected float lacunarity
      • octaves

        protected float octaves
    • Constructor Detail

      • FBM

        public FBM​(float H,
                   float lacunarity,
                   float octaves)
      • FBM

        public FBM​(float H,
                   float lacunarity,
                   float octaves,
                   Function2D basis)
    • Method Detail

      • setBasis

        public void setBasis​(Function2D basis)
      • evaluate

        public float evaluate​(float x,
                              float y)
        Specified by:
        evaluate in interface Function2D