Class PolygonResult

java.lang.Object
net.sf.geographiclib.PolygonResult

public class PolygonResult extends Object
A container for the results from PolygonArea.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double
    The area of the polygon (meters2).
    int
    The number of vertices in the polygon
    double
    The perimeter of the polygon or the length of the polyline (meters).
  • Constructor Summary

    Constructors
    Constructor
    Description
    PolygonResult(int num, double perimeter, double area)
    Constructor
  • Method Summary

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • num

      public int num
      The number of vertices in the polygon
    • perimeter

      public double perimeter
      The perimeter of the polygon or the length of the polyline (meters).
    • area

      public double area
      The area of the polygon (meters2).
  • Constructor Details

    • PolygonResult

      public PolygonResult(int num, double perimeter, double area)
      Constructor

      Parameters:
      num - the number of vertices in the polygon.
      perimeter - the perimeter of the polygon or the length of the polyline (meters).
      area - the area of the polygon (meters2).