Interface PolygonElement

All Superinterfaces:
GridElement
All Known Subinterfaces:
Hexagon, Oblong, Oval
All Known Implementing Classes:
HexagonImpl, OblongImpl, OvalImpl

public interface PolygonElement extends GridElement
Represents a GridElement that is a polygon.
Author:
michael
  • Method Details

    • getArea

      double getArea()
      Gets the area of this grid element.
      Returns:
      the area
    • getCenter

      Coordinate getCenter()
      Gets the center coordinates of this grid element.
      Returns:
      the center coordinates