什么是四元数旋转? [英] What's a quaternion rotation?

查看:459
本文介绍了什么是四元数旋转?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

时的四元数旋转只是一个的X,Y,Z,对象将朝旋转向量,和一个辊,其转动该对象在其轴线?

Is quaternion rotation just a vector with X,Y,Z which the object will rotate towards, and a roll which turns the object on its axis?

是不是很简单?

这意味着如果你有X = 0,Z = 0,Y = 1,对象将朝上?
如果你有Y = 0,Z = 0和X = 1的对象将面向右?

Meaning if you have X=0, Z=0 and Y=1 the object will face upwards?
And if you have Y=0, Z=0 and X=1 the object will face to the right?

(假设X右,Y和Z向深度)

(assuming X right, Y up and Z depth)

推荐答案

一个四元数有4个组成部分,它可以与一个角THETA;和轴矢量的 N 。旋转会使物体绕轴的 N 由角THETA;

A quaternion has 4 components, which can be related to an angle θ and an axis vector n. The rotation will make the object rotate about the axis n by an angle θ.

例如,如果我们有一个像魔方

For example, if we have an cube like

 ______
|\  6  \
| \_____\     z
|5 |    | : y ^
 \ | 4  |    \|
  \|____|     +--> x

接着的90度的旋转;关于轴(x = 0,Y = 0,Z = 1)将旋转5脸从左侧到前面

Then a rotation of 90° about the axis (x=0, y=0, z=1) will rotate the "5" face from the left to the front.

 ______
|\  6  \
| \_____\      z
|3 |    | :  x ^
 \ | 5  |     \|
  \|____|  y<--+

(注:这是旋转轴/角度的描述,这就是OP迷对于如何四元数应用于旋转,看<一href="http://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation">http://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation)

这篇关于什么是四元数旋转?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆