Added helper function to recompute a point on a new line.