quadCtrlPt function: horizontal case