lerpTo method

GeoCoordinate lerpTo(
  1. GeoCoordinate other,
  2. double t
)

Linearly interpolate from this coordinate to other coordinate by an extrapolation factor t.

Implementation

GeoCoordinate lerpTo(GeoCoordinate other, double t) {
  return GeoCoordinate(lerpDouble(x, other.x, t)!, lerpDouble(y, other.y, t)!,
      lerpDouble(z, other.z, t)!);
}