computeAngleBetween static method

double computeAngleBetween(
  1. Point<num> from,
  2. Point<num> 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 from, Point to) => distanceRadians(
    toRadians(from.x), toRadians(from.y), toRadians(to.x), toRadians(to.y));