XMVector3InverseRotate 函数 (directxmath.h)

使用四元数的反数旋转 3D 向量。

语法

XMVECTOR XM_CALLCONV XMVector3InverseRotate(
  [in] FXMVECTOR V,
  [in] FXMVECTOR RotationQuaternion
) noexcept;

参数

[in] V

要旋转的 3D 矢量。

[in] RotationQuaternion

描述要应用于向量的旋转反转的四元数。

返回值

返回旋转的 3D 矢量。

注解

平台要求

Microsoft Visual Studio 2010 或 Microsoft Visual Studio 2012 与 Windows SDK for Windows 8。 支持 Win32 桌面应用、Windows 应用商店应用和 Windows Phone 8 应用。

要求

要求
目标平台 Windows
标头 directxmath.h (包括 DirectXMath.h)

另请参阅

DirectXMath 库 3D 矢量转换函数