XMQuaternionIdentity 函数 (directxmath.h)

返回标识四元数。

语法

XMVECTOR XM_CALLCONV XMQuaternionIdentity() noexcept;

返回值

标识四元数的 XMVECTOR 联合。

言论

DirectXMath 四元数函数使用 XMVECTOR 4 向量表示四元数,其中 X、Y 和 Z 组件是矢量部分,W 组件是标量部分。

给定四元数 (x, y, z, w), XMQuaternionIdentity 函数将返回四元数 (0, 0, 0, 0, 1)。

平台要求

使用适用于 Windows 8 的 Windows SDK Microsoft Visual Studio 2010 或 Microsoft Visual Studio 2012。 支持 Win32 桌面应用、Windows 应用商店应用和 Windows Phone 8 应用。

要求

要求 价值
目标平台 窗户
标头 directxmath.h

另请参阅

DirectXMath 库四元数函数