Function clampRotateToHandler