Package com.irurueta.navigation.geodesic
Class PolygonResult
java.lang.Object
com.irurueta.navigation.geodesic.PolygonResult
A container for the results from PolygonArea.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getArea()
Gets the area of the polygon (meters2).int
getNum()
Gets the number of vertices in the polygon.double
Gets the perimeter of the polygon or the length of the polyline (meters).void
setArea
(double area) Sets the area of the polygon (meters2).void
setNum
(int num) Sets the number of vertices in the polygon.void
setPerimeter
(double perimeter) Sets the perimeter of the polygon or the length of the polyline (meters).
-
Field Details
-
num
private int numThe number of vertices in the polygon. -
perimeter
private double perimeterThe perimeter of the polygon or the length of the polyline (meters). -
area
private double areaThe 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).
-
-
Method Details
-
getNum
public int getNum()Gets the number of vertices in the polygon.- Returns:
- number of vertices in the polygon.
-
setNum
public void setNum(int num) Sets the number of vertices in the polygon.- Parameters:
num
- number of vertices in the polygon.
-
getPerimeter
public double getPerimeter()Gets the perimeter of the polygon or the length of the polyline (meters).- Returns:
- the perimeter of the polygon or the length of the polyline.
-
setPerimeter
public void setPerimeter(double perimeter) Sets the perimeter of the polygon or the length of the polyline (meters).- Parameters:
perimeter
- the perimeter of the polygon or the length of the polyline.
-
getArea
public double getArea()Gets the area of the polygon (meters2).- Returns:
- area of the polygon.
-
setArea
public void setArea(double area) Sets the area of the polygon (meters2).- Parameters:
area
- area of the polygon.
-