lerpFrom2D method

GeoCoordinate2D lerpFrom2D(
  1. GeoCoordinate2D other,
  2. double t
)

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

Implementation

GeoCoordinate2D lerpFrom2D(GeoCoordinate2D other, double t) {
  return GeoCoordinate2D(
      lerpDouble(other.x, x, t)!, lerpDouble(other.y, y, t)!);
}