computeAngleBetween static method

double computeAngleBetween(
  1. Point<double> from,
  2. Point<double> to
)

Returns the angle between two LatLngs, in radians. This is the same as the distance on the unit sphere.

Implementation

static double computeAngleBetween(Point<double> from, Point<double> to) =>
    distanceRadians(toRadians(from.x), toRadians(from.y), toRadians(to.x),
        toRadians(to.y));