Fixed rotation functions to use mat2()