Class PolygonResult


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

      Fields 
      Modifier and Type Field Description
      double area
      The area of the polygon (meters2).
      int num
      The number of vertices in the polygon
      double perimeter
      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
    • Field Detail

      • 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 Detail

      • 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).