lerp method

Point lerp(
  1. Point other,
  2. double t
)

Linearly interpolates between this point and another.

Implementation

Point lerp(Point other, double t) {
  return Point(
    x + (other.x - x) * t,
    y + (other.y - y) * t,
  );
}