Interface SamplingConfig


public interface SamplingConfig
Specifies how noise is sampled.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    of(double xzScale, double xzFactor, double yScale, double yFactor)
     
    double
    The noise smoothness in the horizontal axis.
    double
    The noise scale on the x and z axis.
    double
    The noise smoothness in the vertical axis.
    double
    The noise scale on the y axis.
  • Method Details

    • of

      static SamplingConfig of(double xzScale, double xzFactor, double yScale, double yFactor)
    • xzScale

      double xzScale()
      The noise scale on the x and z axis. Higher values result in more intricate horizontal shapes.
      Returns:
      the xz scale
    • xzFactor

      double xzFactor()
      The noise smoothness in the horizontal axis.
      Returns:
      the xz factor.
    • yScale

      double yScale()
      The noise scale on the y axis. Higher values result in more intricate vertical shapes.
      Returns:
      the y scale
    • yFactor

      double yFactor()
      The noise smoothness in the vertical axis.

      The value can range from 0.001 to 1000.0

      Returns:
      the xz factor.