XMQuaternionIdentity 函式 (directxmath.h)

傳回識別四元數。

Syntax

XMVECTOR XM_CALLCONV XMQuaternionIdentity() noexcept;

傳回值

識別四元數的 XMVECTOR 等位。

備註

DirectXMath 四元數函式會使用 XMVECTOR 4 向量來代表四元數,其中 X、Y 和 Z 元件是向量元件,而 W 元件是純量部分。

假設四元數 (x, y, z, w) , 函 XMQuaternionIdentity 式會傳回四元數 (0, 0, 0, 0, 1) 。

平臺需求

Microsoft Visual Studio 2010 或 Microsoft Visual Studio 2012 搭配 Windows SDK for Windows 8。 支援 Win32 傳統型應用程式、Windows 市集應用程式和 Windows Phone 8 個應用程式。

需求

   
目標平台 Windows
標頭 directxmath.h

另請參閱

DirectXMath 程式庫 Quaternion 函式