lerp static method

Linear interpolation of two LatLngs.

Implementation

static LatLngAlt lerp(LatLngAlt a, LatLngAlt b, double t) {
  final lat = l.lerp(a.latitude.degrees, b.latitude.degrees, t);
  final lng = l.lerp(a.longitude.degrees, b.longitude.degrees, t);
  final alt = l.lerp(a.altitude, b.altitude, t);

  return LatLngAlt(Angle.degree(lat), Angle.degree(lng), alt);
}