Added rotation conversion method.