Class PolygonKt

  • All Implemented Interfaces:

    
    public final class PolygonKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Double getArea() The area of this Polygon on Earth in square meters.
      final Double getSignedArea() Computes the signed area under a closed path on Earth.
      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
    • Constructor Detail

    • Method Detail

      • getArea

         final Double getArea()

        The area of this Polygon on Earth in square meters.

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

        true if latLng lies on or is near the edge of this Polygon, otherwise, false

      • 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
        Returns:

        true if latLng is contained within this Polygon, otherwise, false