当前位置:网站首页>D39_Eulerian Angles and Quaternions
D39_Eulerian Angles and Quaternions
2022-08-05 06:32:00 【Not so simple GG】
Table of Contents
5. Cross product of quaternions
1. Euler Angles
Consists of three angles (x, y, z), which are used to describe the rotation of an object in a specific coordinate system
The rotation adjusted by the Inspector panel is the Euler angle transform.eulerAngles
Eulerian angles are intuitive and easy to understand, but one disadvantage is the universal lock (please encyclopedia)
Unity uses y→x→z
2. Quaternion
Quaternion
A quaternion consists of a scalar and a 3D element [w,(x,y,z)]
Meaning: Represents a rotation in 3D space
Given the rotation, assuming that the rotation is about the N axis, the rotation is θ degrees, and the N axis is (x, y, z), then it constitutes a quaternion
Q=[cos(θ/2),sin(θ/2)*x,sin(θ/2)*y,sin(θ/2)*z]
Constructing a quaternion from axis-angle pairs Quaternion.AngleAxis
Euler angle conversion to quaternion Quaternion.Euler
Quaternion to Euler Angles .eulerAngles
3. Negative Quaternion
q[w,(x,y,z)] -q[-w,(-x,-y,-z)]
Geometric meaning: q and -q represent the same amount of rotation
4.Unit Quaternion
q[1,0,0,0] -q[-1,0,0,0]
Quaternion.identity
Geometric meaning: represents a quaternion without a rotation angle
5. QuaternionThe cross product of
The result obtained by multiplying a quaternion by a quaternion is still a quaternion
Geometric meaning: The new quaternion obtained by the cross product of two quaternions is the superposition of the two quaternion rotations
transform.rotation*=Quaternion.AngleAxis();
The cross product of a quaternion and a vector can get a new vector that rotates according to the rotation direction of the quaternion
Note: Only the quaternion * vector operator is overloaded in the quaternion, and there is no overloaded vector * quaternion operator, so only
Vector3 dir=Quaternion.AngleAxis()*Vector3.forward;
Quaternion.LookRotation(); Passing a vector as a parameter can get the angle required to turn the positive direction of the object to the vector
6. Quaterniondifference
Quaternion.Slerp(a,b,t);
边栏推荐
- 监控系统的内卷,有什么讲究?
- ROS2下使用ROS1 bag的方法
- Disk management and file systems
- Network Troubleshooting Basics - Study Notes
- sql server 重复值在后面计数
- Operation and maintenance engineer, come and pick up the wool
- I/O performance and reliability
- VLAN is introduced with the experiment
- [问题已处理]-虚拟机报错contains a file system with errors check forced
- The Servlet to jump to the JSP page, forwarding and redirection
猜你喜欢
随机推荐
Advantages of overseas servers
Media query, rem mobile terminal adaptation
NAT experiment
NIO works is analysed
transport layer protocol
sql server duplicate values are counted after
BIO,NIO,AIO实践学习笔记(便于理解理论)
The method of using ROS1 bag under ROS2
有哪些事情是你做了运维才知道的?
原生JS带你了解数组方法实现及使用
Wireshark packet capture and common filtering methods
el-progress implements different colors of the progress bar
Seven Ways to Center a Box Horizontally and Vertically
ROS2下使用ROS1 bag的方法
H5 的浏览器存储
618,你也许可以清醒亿点点
Small example of regular expression--remove spaces in the middle and on both sides of the string
CIPU, what impact does it have on the cloud computing industry?
7步完成云上监控
网络协议基础-学习笔记




![[问题已处理]-jenkins流水线checkout超时](/img/3d/c14276d2b5ce18fc3d1288abb059c0.png)
![[问题已处理]-虚拟机报错contains a file system with errors check forced](/img/07/1222a44dd52b359bf7873e6f3b7ebf.png)



