if a spline segment is a straight line, just project the point onto the line instead of trying to make a circle out of it