Class CheckerFunction3D

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

public class CheckerFunction3D extends Object implements Function3D
A simple checker board pattern, with each unit cube alternating between -1 and 1 in value.
  • Constructor Details

    • CheckerFunction3D

      public CheckerFunction3D()
  • 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]