Function sketchConstraintMidpoint