简体   繁体   English

如何根据俯仰、偏航和滚转计算向上矢量?

[英]How do you calculate an up vector from pitch, yaw and roll?

I'm trying to calculate an up vector from a direction vector I have (from which I can get the pitch and yaw) and roll I have.我正在尝试从我拥有的方向向量(从中我可以得到俯仰和偏航)和滚动计算一个向上向量。 I need this so that I can make a quaternion.我需要这个以便我可以制作四元数。

Does anybody know how I can do this?有人知道我该怎么做吗?

I was able to resolve this issue by using a utility that allowed me to convert pitch yaw and roll into an up vector!我能够通过使用一个实用程序来解决这个问题,该实用程序允许我将俯仰偏航和滚转转换为向上矢量! (Using the quaternions from BKCommonLib) (使用来自 BKCommonLib 的四元数)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM