Package 

Class PolygonKt

    • Method Summary

      Modifier and Type Method Description
      final Double getArea()
      final Double getSignedArea()
      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.
      final static Boolean contains(Polygon $self, LatLng latLng) Computes whether or not latLng is contained within this Polygon.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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 inspect
        tolerance - the tolerance in meters
      • contains

         final static Boolean contains(Polygon $self, LatLng latLng)

        Computes whether or not latLng is contained within this Polygon.

        Parameters:
        latLng - the LatLng to inspect