operator - method
Subtracting two coordinates.
Implementation
Coordinate operator -(Coordinate other) => Coordinate(
latitude: latitude - other.latitude,
longitude: longitude - other.longitude,
altitude: (altitude == null && other.altitude == null)
? null
: (altitude ?? 0.0) - (other.altitude ?? 0.0),
);