computeAngleBetween static method

num computeAngleBetween(
  1. LatLng from,
  2. LatLng to
)

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

Implementation

static num computeAngleBetween(LatLng from, LatLng to) => distanceRadians(
    MathUtil.toRadians(from.latitude),
    MathUtil.toRadians(from.longitude),
    MathUtil.toRadians(to.latitude),
    MathUtil.toRadians(to.longitude));