GoogleMapsUtilsSpherical class

Instance wrapper around SphericalUtils for use via GoogleMapsUtils.spherical.

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

centerFromLatLngBounds(GoogleMapsUtilsLatLngBounds bounds) Point<double>
Returns the center point of the given bounds.
computeAngleBetween(Point<double> from, Point<double> to) double
Returns the angle between from and to, in radians.
computeArea(List<Point<double>> path) double
Returns the area enclosed by path, in square meters.
computeDistanceBetween(Point<double> from, Point<double> to) double
Returns the distance between from and to, in meters.
computeHeading(Point<double> from, Point<double> to) double
Returns the heading from from to to in degrees [-180, 180).
computeLength(List<Point<double>> path) double
Returns the length of the given path, in meters.
computeOffset(Point<double> from, double distance, double heading) Point<double>
Returns the point at distance meters from from along heading.
computeOffsetOrigin(Point<double> to, double distance, double heading) Point<double>?
Returns the origin given a destination to, distance, and heading.
computeSignedArea(List<Point<double>> path) double
Returns the signed area of path (positive = counter-clockwise).
distanceRadians(double lat1, double lng1, double lat2, double lng2) double
Returns distance on the unit sphere (radians in, radians out).
getCardinal(double angle) String
Returns a 16-point compass cardinal abbreviation for the given angle.
interpolate(Point<double> from, Point<double> to, double fraction) Point<double>
Returns the point at fraction of the way between from and to.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBounds(double x, double y, double radiusInMeters) GoogleMapsUtilsLatLngBounds
Creates a bounding box centered at (x, y) with radiusInMeters.
toBoundsFromPoints(List<Point<double>> points) GoogleMapsUtilsLatLngBounds
Computes the smallest bounding box that contains all points.
toDegrees(double rad) double
Converts rad radians to degrees.
toRadians(double deg) double
Converts deg degrees to radians.
toString() String
A string representation of this object.
inherited
toSubBounds(GoogleMapsUtilsLatLngBounds bounds, {int division = 2}) List<GoogleMapsUtilsLatLngBounds>
Splits bounds into a grid of division² sub-bounds.

Operators

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