Package org.openstreetmap.josm.tools
Class Geometry.AreaAndPerimeter
- java.lang.Object
-
- org.openstreetmap.josm.tools.Geometry.AreaAndPerimeter
-
- Enclosing class:
- Geometry
public static class Geometry.AreaAndPerimeter extends java.lang.Object
Data class to hold two double values (area and perimeter of a polygon).
-
-
Constructor Summary
Constructors Constructor Description AreaAndPerimeter(double area, double perimeter)
Create a newGeometry.AreaAndPerimeter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getArea()
Gets the areadouble
getPerimeter()
Gets the perimeter
-
-
-
Constructor Detail
-
AreaAndPerimeter
public AreaAndPerimeter(double area, double perimeter)
Create a newGeometry.AreaAndPerimeter
- Parameters:
area
- The areaperimeter
- The perimeter
-
-
Method Detail
-
getArea
public double getArea()
Gets the area- Returns:
- The area size
-
getPerimeter
public double getPerimeter()
Gets the perimeter- Returns:
- The perimeter length
-
-