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
 HexagonOrientation getOrientation()
          Gets the orientation of this hexagon.
 double getSideLength()
          Gets the side length of this hexagon.
 
Methods inherited from interface PolygonElement
getArea, getCenter
 
Methods inherited from interface GridElement
getBounds, getVertices, toDenseGeometry, toGeometry
 

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


Copyright © 1996-2014 Geotools. All Rights Reserved.