adding rotation using precomputed cosine/sine
Former-commit-id: 87d47626fa76b3b19bc892982303c20d4d8c03e7