Class Cylinder

java.lang.Object
org.spongepowered.noise.model.Cylinder

public class Cylinder extends Object
Model that defines the surface of a cylinder.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    get(double angle, double height)
    Returns the output value from the noise module given the (angle, height) coordinates of the specified input value located on the surface of the cylinder.
    Returns the noise module that is used to generate the output values.
    void
    Sets the noise module that is used to generate the output values.

    Methods inherited from class java.lang.Object

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

    • Cylinder

      public Cylinder(NoiseModule mod)
      Parameters:
      mod - The noise module that is used to generate the output values.
  • Method Details

    • module

      public NoiseModule module()
      Returns the noise module that is used to generate the output values.
      Returns:
      A reference to the noise module.
    • setModule

      public void setModule(NoiseModule mod)
      Sets the noise module that is used to generate the output values.

      This noise module must exist for the lifetime of this object, until you pass a new noise module to this method.

      Parameters:
      mod - The noise module that is used to generate the output values.
    • get

      public double get(double angle, double height)
      Returns the output value from the noise module given the (angle, height) coordinates of the specified input value located on the surface of the cylinder.
      Parameters:
      angle - The angle around the cylinder's center, in degrees.
      height - The height along the y axis.
      Returns:
      The output value from the noise module.