lerpTo2D method

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

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

Implementation

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