Fixed rotation at the expense of mathematical correctness.  I feel shame.