Added a rotation 2D function.