lerp static method

MapLatLng? lerp(
  1. MapLatLng? a,
  2. MapLatLng? b,
  3. double t
)

Linearly interpolating between two MapLatLng.

The arguments must not be null.

Implementation

static MapLatLng? lerp(MapLatLng? a, MapLatLng? b, double t) {
  if (a == null || b == null) {
    return null;
  }

  return MapLatLng(a.latitude + (b.latitude - a.latitude) * t,
      a.longitude + (b.longitude - a.longitude) * t);
}