Class Polygon


  • public class Polygon
    extends Object
    Contains any number of vertex coordinates (Points).
    • Constructor Detail

      • Polygon

        public Polygon​(List<Point> coordinates)
    • Method Detail

      • getAsBbox

        public Bbox getAsBbox()
        Get the polygon as a Bbox.
      • getCentroid

        public Point getCentroid()
        Get the central coordinates (centroid) of the Polygon.
      • getMinMaxY

        public MinMax getMinMaxY()
        Get the maximum and minimum Y coordinates.
      • getMinMaxX

        public MinMax getMinMaxX()
        Get the maximum and minimum Y coordinates.
      • isEmpty

        public boolean isEmpty()
        Returns true if there are no coordinates.
      • getCoordinates

        public List<Point> getCoordinates()