XMVector2Transform 函式 (directxmath.h)

依矩陣轉換 2D 向量。

語法

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

參數

[in] V

2D 向量。

[in] M

轉換矩陣。

傳回值

傳回已轉換的向量。

備註

XMVector2Transform 使用輸入矩陣資料列 0 和 1 進行旋轉和縮放,而第 3 列則有效轉譯 (假設第 2 列為 0) ,以執行轉換。 輸入向量的 w 元件假設為 0。 應該忽略輸出向量的 z 元件,而且其 w 元件可能是非同質 (!= 1.0) 。

平臺需求

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

需求

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

另請參閱

DirectXMath 程式庫 2D 向量轉換函式

XMVector2TransformStream