Package org.geotools.grid.hexagon
Interface Hexagon
-
- All Superinterfaces:
GridElement
,PolygonElement
- All Known Implementing Classes:
HexagonImpl
public interface Hexagon extends PolygonElement
Defines methods and enum constants to work with hexagons.- Since:
- 2.7
- Author:
- mbedward
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HexagonOrientation
getOrientation()
Gets the orientation of this hexagon.double
getSideLength()
Gets the side length of this hexagon.-
Methods inherited from interface GridElement
getBounds, getVertices, toDenseGeometry, toGeometry
-
Methods inherited from interface PolygonElement
getArea, getCenter
-
-
-
-
Method Detail
-
getSideLength
double getSideLength()
Gets the side length of this hexagon.- Returns:
- side length
-
getOrientation
HexagonOrientation getOrientation()
Gets the orientation of this hexagon.- Returns:
- either Orientation#ANGLED or Orientation#FLAT
-
-