Package com.ardor3d.math.functions
Class HexGridFunction3D
java.lang.Object
com.ardor3d.math.functions.GridPatternFunction3D
com.ardor3d.math.functions.HexGridFunction3D
- All Implemented Interfaces:
Function3D
Creates a hexagon pattern in the XY plane. This is not really 3D, since it ignores the z factor.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected double
getCellValue
(int gridX, int gridY, double scaledX, double scaledY) Gets a value from the user-defined grid.Methods inherited from class com.ardor3d.math.functions.GridPatternFunction3D
eval
-
Constructor Details
-
HexGridFunction3D
public HexGridFunction3D()
-
-
Method Details
-
getCellValue
protected double getCellValue(int gridX, int gridY, double scaledX, double scaledY) Description copied from class:GridPatternFunction3D
Gets a value from the user-defined grid. This is an extension point for subclasses which may need to perform a calculation of some type on that value before returning it. The default implementation simply returns the value from the grid at gridX/gridY.- Overrides:
getCellValue
in classGridPatternFunction3D
- Parameters:
gridX
- the abscissa on the gridgridY
- the ordinate on the gridscaledX
- the x scale valuescaledY
- the y scale value- Returns:
- the value from the user-defined grid
-