Class Polygon

java.lang.Object
io.goobi.viewer.model.maps.Polygon
All Implemented Interfaces:
IArea

public class Polygon extends Object implements IArea
Author:
florian
  • Constructor Details

    • Polygon

      public Polygon(List<Point> points)
    • Polygon

      public Polygon(double[][] points)
  • Method Details

    • getVertices

      public double[][] getVertices()
      Description copied from interface: IArea
      An array containing all points (2 size double arrays) of the area.
      Specified by:
      getVertices in interface IArea
      Returns:
      double[][]
    • getGeoJson

      public String getGeoJson()
      Specified by:
      getGeoJson in interface IArea
    • getDiameter

      public double getDiameter()
      Specified by:
      getDiameter in interface IArea
      Returns:
      double
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object