Package com.google.maps.android
Class PolygonKt
-
- All Implemented Interfaces:
public final class PolygonKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static Doubleareaprivate final static DoublesignedArea
-
Method Summary
Modifier and Type Method Description final DoublegetArea()The area of this Polygon on Earth in square meters. final DoublegetSignedArea()Computes the signed area under a closed path on Earth. final static BooleanisOnEdge(Polygon $self, LatLng latLng, Double tolerance)Checks whether or not latLng lies on or is near the edge of this Polygon within a tolerance (in meters) of tolerance. final static Booleancontains(Polygon $self, LatLng latLng)Computes whether or not latLng is contained within this Polygon. -
-
Method Detail
-
getSignedArea
final Double getSignedArea()
Computes the signed area under a closed path on Earth. The sign of the area may be used to determine the orientation of the path.
-
isOnEdge
final static Boolean isOnEdge(Polygon $self, LatLng latLng, Double tolerance)
Checks whether or not latLng lies on or is near the edge of this Polygon within a tolerance (in meters) of tolerance. The default value is PolyUtil.DEFAULT_TOLERANCE.
- Parameters:
latLng- the LatLng to inspecttolerance- the tolerance in meters- Returns:
true if latLng lies on or is near the edge of this Polygon, otherwise, false
-
-
-
-