Package com.ardor3d.math.functions
Class CylinderFunction3D
java.lang.Object
com.ardor3d.math.functions.CylinderFunction3D
- All Implemented Interfaces:
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 Summary
ConstructorDescriptionCylinderFunction3D
(double frequency) Construct a new CylinderFunction3D with the given frequency -
Method Summary
Modifier and TypeMethodDescriptiondouble
eval
(double x, double y, double z) double
void
setFrequency
(double frequency)
-
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 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]
-
setFrequency
public void setFrequency(double frequency) -
getFrequency
public double getFrequency()
-