Constrain a point to the midpoint of a line or arc.