PolyUtils class

Constructors

PolyUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

containsLatLng(LatLng latLng, List<LatLng> polygon, [bool geodesic = false]) bool
containsLocation(double lat, double lng, List<LatLng> polygon, [bool geodesic = false]) bool
Computes whether the given point lies inside the specified polygon. The polygon is always considered closed, regardless of whether the last point equals the first or not. Inside is defined as not containing the South Pole -- the South Pole is always outside. The polygon is formed of great circle segments if geodesic is true, and of rhumb (loxodromic) segments otherwise.
intersects(double lat1, double lat2, double lng2, double lat3, double lng3, [bool geodesic = false]) bool
Computes whether the vertical segment (lat3, lng3) to South Pole intersects the segment (lat1, lng1) to (lat2, lng2). Longitudes are offset by -lng1; the implicit lng1 becomes 0.