XMMatrixTranslation 函式 (directxmath.h)
從指定的位移建置轉譯矩陣。
語法
XMMATRIX XM_CALLCONV XMMatrixTranslation(
[in] float OffsetX,
[in] float OffsetY,
[in] float OffsetZ
) noexcept;
參數
[in] OffsetX
沿著 X 軸轉譯。
[in] OffsetY
沿著Y軸轉譯。
[in] OffsetZ
沿著 z 軸的轉譯。
傳回值
傳迴轉譯矩陣。
備註
平臺需求
Microsoft Visual Studio 2010 或 Microsoft Visual Studio 2012 與適用於 Windows 8 的 Windows SDK。 支援 Win32 傳統型應用程式、Windows 市集應用程式和 Windows Phone 8 個應用程式。規格需求
需求 | 值 |
---|---|
目標平台 | Windows |
標頭 | directxmath.h |