To Constrain Pan and Orbit to be Vertical or Horizontal