Class CylinderFunction3D

java.lang.Object
com.ardor3d.math.functions.CylinderFunction3D
All Implemented Interfaces:
Function3D

public class CylinderFunction3D extends Object implements Function3D
Function describing a set of concentric rings, centered around the origin on the x/z plane, each ring stretching infinitely along the Y axis. The spacing between rings is controlled by the frequency. A higher frequency gives more rings in the same amount of space.
  • Constructor Details

    • CylinderFunction3D

      public CylinderFunction3D(double frequency)
      Construct a new CylinderFunction3D with the given frequency
      Parameters:
      frequency - the number of rings per unit
  • Method Details

    • eval

      public double eval(double x, double y, double z)
      Specified by:
      eval in interface Function3D
      Parameters:
      x - the 1st value in our tuple
      y - the 2nd value in our tuple
      z - the 3rd value in our tuple
      Returns:
      some value, generally (but not necessarily) in [-1, 1]
    • setFrequency

      public void setFrequency(double frequency)
    • getFrequency

      public double getFrequency()