Package com.ardor3d.math.functions
Class CheckerFunction3D
java.lang.Object
com.ardor3d.math.functions.CheckerFunction3D
- All Implemented Interfaces:
Function3D
A simple checker board pattern, with each unit cube alternating between -1 and 1 in value.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CheckerFunction3D
public CheckerFunction3D()
-
-
Method Details
-
eval
public double eval(double x, double y, double z) - Specified by:
eval
in interfaceFunction3D
- Parameters:
x
- the 1st value in our tupley
- the 2nd value in our tuplez
- the 3rd value in our tuple- Returns:
- some value, generally (but not necessarily) in [-1, 1]
-