Geo class

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

closestPoint(Point point, Segment segment) Point
Find the point on a given segment (great-circle arc or shorter arc) that is closest to a given point.
course(Point firstPoint, Point secondPoint) double
Calculate the course (bearing) between two points in degrees in the range [0, 360].
distance(Point firstPoint, Point secondPoint) double
Calculate the great-circle distance between two points on a sphere with a radius equal to the Earth's radius using the haversine formula described here: http://en.wikipedia.org/wiki/Haversine_formula
pointOnSegmentByFactor(Segment segment, {required double factor}) Point
Find a point X on a given segment AB such that d(AX)/d(AB) = factor, where factor is a given number in [0, 1].