共用方式為


XMVector4AngleBetweenNormals 函式 (directxmath.h)

計算兩個標準化 4D 向量之間的弧度角度。

語法

XMVECTOR XM_CALLCONV XMVector4AngleBetweenNormals(
  [in] FXMVECTOR N1,
  [in] FXMVECTOR N2
) noexcept;

參數

[in] N1

標準化 4D 向量。

[in] N2

標準化 4D 向量。

傳回值

傳回向量。 N1N2 之間的弧度角度會復寫至每個元件。

備註

平臺需求

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

規格需求

需求
目標平台 Windows
標頭 directxmath.h (包含 DirectXMath.h)

另請參閱

DirectXMath 連結庫 4D 向量幾何函式

XMVector4AngleBetweenNormalsEst