Quaternion 计算3D物体旋转角度
来源:互联网 发布:模拟画像软件 编辑:程序博客网 时间:2024/04/28 16:46
在3D程序中,通常用quaternion来计算3D物体的旋转角度,与Matrix相比,quaternion更加高效,占用的储存空间更小,此外也更便于插值。在数学上,quaternion表示复数w+xi+yj+zk,其中i,j,k都是虚数单位。
可以把quaternion看做一个标量和一个3D向量的组合。实部w表示标量,虚部表示向量标记为V,或三个单独的分量(x,y,z)。所以quaternion可以记为[w,V]或[ w,x,y,z]。对quaternion最大的误解在于认为w表示旋转角度,V表示旋转轴,正确的理解应该是w与旋转角度有关,v与旋转轴有关。
unity3d里的Quaternion自带了一些方便的改变形式:
AngleAxis
Creates a rotation which rotates angle degrees around axis.
FromToRotationCreates a rotation which rotates from fromDirection to toDirection.
LookRotationCreates a rotation that looks along forward with the the head upwards along upwards
SlerpSpherically interpolates from towards to by t.
LerpInterpolates from towards to by t and normalizes the result afterwards.
InverseReturns the Inverse of rotation.
AngleReturns the angle in degrees between two rotations a and b.
EulerReturns a rotation that rotates x degrees around the x axis. y degrees around the y axis. z degrees around the z axis.
本文来自:http://www.meebe.net/blog/article/unity3d/u3d_quater.html
- Quaternion 计算3D物体旋转角度
- unity3d Quaternion 计算3D物体旋转角度
- opencv12-计算物体旋转角度
- Unity如何限制3D物体的旋转角度
- OpenCV轮廓检测,计算物体旋转角度
- OpenCV轮廓检测,计算物体旋转角度
- OpenCV轮廓检测,计算物体旋转角度
- unity3D 旋转3D物体
- 【OpenCV】OpenCV轮廓检测,计算物体旋转角度
- PCA(主成份分析),计算物体旋转角度
- Unity3D 物体旋转之Quaternion.Slerp
- Unity3D 物体旋转之Quaternion.Slerp
- 跟踪球 鼠标旋转3D物体
- unity 3d 鼠标旋转物体脚本
- cv1.3计算物体旋转角
- 3d 鱼的旋转角度
- 计算旋转角度
- Unity 旋转角度计算
- MyEclipse的一些优化方法
- C# Color Name Table http://www.flounder.com/csharp_color_table.htm
- C#餐厅管理系统2--数据连接及登录
- mina服务端与c++客户端通信1
- 利用连结对多个数据表进行检索
- Quaternion 计算3D物体旋转角度
- hdu 1695 综合数论 欧拉函数 分解质因子 容斥原理 打印素数表 帅呆了的一个题目 详解
- LINKSYS E3000刷DD-WRT的方法
- window下如何让php支持openssl
- extern
- mina服务端与c++客户端通信2
- android实现短信监听
- 各种刷机包的区别
- 赛车游戏开发 - 漂移算法解决方案