Function to lock angle

(will be used in quad view)