vectorInterpolate static method

ILatLng vectorInterpolate(
  1. ILatLng from,
  2. ILatLng to,
  3. double t
)

Implementation

static ILatLng vectorInterpolate(ILatLng from, ILatLng to, double t) {
  var min = toVector3(from.latitude, from.longitude).normalized();
  var max = toVector3(to.latitude, to.longitude).normalized();

  var value = min + (max - min) * t;

  return vectorToPolar(value);
}