-
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()final DoublegetSignedArea()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()
-
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
-
-
-
-