摘要
本文首先介绍了四元数和旋转矩阵在实现向量旋转中的应用,在此基础上,根据游戏开发的实际需要,讨论了四元数和旋转矩阵之间的相互转化关系。最后,重点分析了由旋转矩阵到四元数的转换算法,并按照计算机程序设计的特殊要求设计了程序。
This paper first introduces the realization of the vector rotation using quaternion and rotational matrix, on this basis, according to the actual needs of game development, we discuss the transfering between quaternion and rotation matrix . Finally, we focus on discussing algorithm of how to convertint the rotational matrix to quaternion, and in accordance with the special requirements of the computer program,we design a program.
出处
《阴山学刊(自然科学版)》
2012年第3期11-14,共4页
Yinshan Academic Journal(Natural Science Edition)
关键词
四元数
旋转矩阵
游戏
Quaternion
rotational matrix
game