XMVector3TransformNormal 函式 (directxmath.h)

依指定的矩陣轉換 3D 向量法向量。

語法

XMVECTOR XM_CALLCONV XMVector3TransformNormal(
  [in] FXMVECTOR V,
  [in] FXMMATRIX M
) noexcept;

參數

[in] V

3D 法向量。

[in] M

轉換矩陣。

傳回值

傳回已轉換的向量。

備註

XMVector3TransformNormal 使用輸入矩陣數據列 0、1 和 2 執行轉換以進行旋轉和縮放,並忽略數據列 3。

平臺需求

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 向量轉換函式

XMVector3TransformNormalStream