Midpoint of a line segment in the plane