distance static method

double distance(
  1. Point firstPoint,
  2. Point secondPoint
)

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

This formula is numerically better-conditioned for small distances, according to http://en.wikipedia.org/wiki/Great-circle_distance

Implementation

static core.double distance(mapkit_geometry_point.Point firstPoint,
    mapkit_geometry_point.Point secondPoint) {
  return _distance(
    firstPoint,
    secondPoint,
  );
}