当前位置:网站首页>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);
边栏推荐
- VLAN介绍与实验
- selenium模块的操作之拉钩
- Transformer interprets and predicts instance records in detail
- The highlight moment of operation and maintenance starts with intelligence
- 监控系统的内卷,有什么讲究?
- spark operator-parallelize operator
- The hook of the operation of the selenium module
- 传输层协议
- Disk management and file systems
- Native JS takes you to understand the implementation and use of array methods
猜你喜欢

Small example of regular expression--validate email address

ALC实验
![[Problem has been resolved]-Virtual machine error contains a file system with errors check forced](/img/07/1222a44dd52b359bf7873e6f3b7ebf.png)
[Problem has been resolved]-Virtual machine error contains a file system with errors check forced

NIO works is analysed

DevOps流程demo(实操记录)

Met with the browser page
time complexity and space complexity

Problems encountered in installing Yolo3 target detection module in Autoware

运维的高光时刻,从智能化开始

LinkSLA insists that users come first and creates a sustainable operation and maintenance service plan
随机推荐
sql server duplicate values are counted after
Seven Ways to Center a Box Horizontally and Vertically
LinkSLA insists that users come first and creates a sustainable operation and maintenance service plan
Network Troubleshooting Basics - Study Notes
Chengyun Technology was invited to attend the 2022 Alibaba Cloud Partner Conference and won the "Gathering Strength and Going Far" Award
By solving these three problems, the operation and maintenance efficiency will exceed 90% of the hospital
带你深入了解Cookie
深度 Zabbix 使用指南——来自惨绿少年
多线程之传递参数
In-depth Zabbix user guide - from the green boy
config.js相关配置汇总
CIPU, what impact does it have on the cloud computing industry?
Mina disconnects and reconnects
What is Alibaba Cloud Express Beauty Station?
Browser Storage WebStorage
Native JS takes you to understand the implementation and use of array methods
教您简单几步实现工业树莓派正确安装RS232转USB驱动
传输层协议
Passing parameters in multiple threads
错误类型:反射。ReflectionException:无法设置属性“xxx”的“类”xxx”与价值“xxx”