Class PointNoise

java.lang.Object
com.hypixel.hytale.procedurallib.logic.PointNoise
All Implemented Interfaces:
NoiseFunction, NoiseFunction2d, NoiseFunction3d

public class PointNoise extends Object implements NoiseFunction
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final double
     
    private final double
     
    private final double
     
    private final double
     
    private final double
     
    private final double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    PointNoise(double x, double y, double z, double innerRadius, double outerRadius)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    get(int seed, int seedOffset, double x, double y)
     
    double
    get(int seed, int seedOffset, double x, double y, double z)
     

    Methods inherited from class java.lang.Object

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

    • x

      private final double x
    • y

      private final double y
    • z

      private final double z
    • innerRadius2

      private final double innerRadius2
    • outerRadius2

      private final double outerRadius2
    • invRange2

      private final transient double invRange2
  • Constructor Details

    • PointNoise

      public PointNoise(double x, double y, double z, double innerRadius, double outerRadius)
  • Method Details

    • get

      public double get(int seed, int seedOffset, double x, double y)
      Specified by:
      get in interface NoiseFunction2d
    • get

      public double get(int seed, int seedOffset, double x, double y, double z)
      Specified by:
      get in interface NoiseFunction3d