Package org.geotools.grid.hexagon
Interface Hexagon
- All Superinterfaces:
GridElement
,PolygonElement
- All Known Implementing Classes:
HexagonImpl
Defines methods and enum constants to work with hexagons.
- Since:
- 2.7
- Author:
- mbedward
-
Method Summary
Modifier and TypeMethodDescriptionGets the orientation of this hexagon.double
Gets the side length of this hexagon.Methods inherited from interface GridElement
getBounds, getVertices, toDenseGeometry, toGeometry
Methods inherited from interface PolygonElement
getArea, getCenter
-
Method Details
-
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
-