point.move(ref, distance)

Move the point on a line that leads to another point ref by a certain distance.