SphericalUtils class

Constructors

SphericalUtils()

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

computeAngleBetween(LatLng from, LatLng to) num
Returns the angle between two LatLngs, in radians. This is the same as the distance on the unit sphere.
computeDistanceBetween(LatLng from, LatLng to) num
Returns the distance between two LatLngs, in meters.
computeHeading(LatLng from, LatLng to) num
Returns the heading from one LatLng to another LatLng. Headings are expressed in degrees clockwise from North within the range [-180,180). @return The heading in degrees clockwise from north.
computeOffset(LatLng from, num distance, num heading) → LatLng
Returns the LatLng resulting from moving a distance from an origin in the specified heading (expressed in degrees clockwise from north). @param from The LatLng from which to start. @param distance The distance to travel. @param heading The heading in degrees clockwise from north.
distanceRadians(num lat1, num lng1, num lat2, num lng2) num
Returns distance on the unit sphere; the arguments are in radians.

Constants

earthRadius → const num