Completed mouse trigonometric rotation calculations.