Interface DensityFunction


@CatalogedBy(DensityFunctions.class) public interface DensityFunction
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    compute(int x, int y, int z)
    Computes the noise value at given position
    double
    Computes the noise value at given position.
    double
    max()
    Returns the maximum value possible.
    double
    min()
    Returns the minimum value possible.
  • Method Details

    • min

      double min()
      Returns the minimum value possible.
      Returns:
      The minimum value
    • max

      double max()
      Returns the maximum value possible.
      Returns:
      The maximum value
    • compute

      double compute(Vector3i pos)
      Computes the noise value at given position.
      Parameters:
      pos - The position
      Returns:
      The noise value at given position
    • compute

      double compute(int x, int y, int z)
      Computes the noise value at given position
      Parameters:
      x - The x coordinate
      y - The y coordinate
      z - The z coordinate
      Returns:
      The noise value at given position