Fixed rotation logic. Don't trust Microsoft calculator for SINE and COSINE!