Class HexGridFunction3D

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

public class HexGridFunction3D extends GridPatternFunction3D
Creates a hexagon pattern in the XY plane. This is not really 3D, since it ignores the z factor.
  • 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 class GridPatternFunction3D
      Parameters:
      gridX - the abscissa on the grid
      gridY - the ordinate on the grid
      scaledX - the x scale value
      scaledY - the y scale value
      Returns:
      the value from the user-defined grid