SphericalGreatCircleLineString class

Calculations for line strings (as an iterable of geographic positions) on a spherical model earth (great-circle paths).

Annotations
  • @immutable

Constructors

SphericalGreatCircleLineString(Iterable<Geographic> lineString)
Creates and object with calculations for line strings (as an iterable of geographic positions) on a spherical model earth (great-circle paths).
const

Properties

hashCode int
The hash code for this object.
no setterinherited
lineString Iterable<Geographic>
The current line string with geographic positions for calculations.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

length2D({double radius = 6371000.0}) double
Calculates the length of a spherical line string with line segments representing great circle arcs.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
polygonArea({double radius = 6371000.0}) double
Calculates the area of a spherical polygon where the sides of the polygon are great circle arcs joining the vertices.
toString() String
A string representation of this object.
inherited

Operators

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