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 TypeMethodDescriptionbooleanChecks whether this area contains the given point.booleanCalculates and returns the bounding box of this area.inthashCode()Converts this area forGeoPointto an equivalent area forCartesianPoint.
-
Constructor Details
-
GeoPolygon
-
GeoPolygon
Construct a newGeoPolygon.- Parameters:
coordinates- A list of lists ofGeoPoints
-
-
Method Details
-
getVertices
- Specified by:
getVerticesin interfacePolygon<GeoPoint>
-
getBounds
Description copied from interface:AreaCalculates and returns the bounding box of this area. -
contains
Description copied from interface:AreaChecks whether this area contains the given point. -
toCartesian
Description copied from interface:GeoAreaConverts this area forGeoPointto an equivalent area forCartesianPoint.- Specified by:
toCartesianin interfaceGeoArea- Returns:
- the equivalent area based on
CartesianPoint
-
equals
-
hashCode
public int hashCode()
-