SphericalRhumbLine class

Latitude/longitude points on a spherical model earth, and methods for calculating distances, bearings, destinations, etc on (loxodromic) rhumb lines.

Annotations
  • @immutable

Constructors

SphericalRhumbLine(Geographic position)
Create an object calculating distances, bearings, destinations, etc on (loxodromic) rhumb line paths with position as the current position.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
position Geographic
The current geographic position for calculations.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Geographic? position}) SphericalRhumbLine
Copy this geodetic object with an optional position changed.
destinationPoint({required double distance, required double bearing, double radius = 6371000.0}) Geographic
Returns the destination point having travelled along a rhumb line from the current position the given distance on the given bearing.
distanceTo(Geographic destination, {double radius = 6371000.0}) double
Returns the distance from the current position to destination along a rhumb line.
finalBearingTo(Geographic destination) double
Returns the bearing from the current position to destination along a rhumb line.
initialBearingTo(Geographic destination) double
Returns the bearing from the current position to destination along a rhumb line.
midPointTo(Geographic destination) Geographic
Returns the loxodromic midpoint (along a rhumb line) between the current position and destination.
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