Package org.eclipse.mosaic.lib.geo
Class GeoPolygon
java.lang.Object
org.eclipse.mosaic.lib.geo.GeoPolygon
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGeoPolygon
(List<GeoPoint> coordinates) Construct a newGeoPolygon
.GeoPolygon
(GeoPoint... coordinates) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks whether this area contains the given point.boolean
Calculates and returns the bounding box of this area.int
hashCode()
Converts this area forGeoPoint
to an equivalent area forCartesianPoint
.
-
Constructor Details
-
GeoPolygon
-
GeoPolygon
Construct a newGeoPolygon
.- Parameters:
coordinates
- A list of lists ofGeoPoint
s
-
-
Method Details
-
getVertices
- Specified by:
getVertices
in interfacePolygon<GeoPoint>
-
getBounds
Description copied from interface:Area
Calculates and returns the bounding box of this area. -
contains
Description copied from interface:Area
Checks whether this area contains the given point. -
toCartesian
Description copied from interface:GeoArea
Converts this area forGeoPoint
to an equivalent area forCartesianPoint
.- Specified by:
toCartesian
in interfaceGeoArea
- Returns:
- the equivalent area based on
CartesianPoint
-
equals
-
hashCode
public int hashCode()
-