XMVectorPow 函式 (directxmath.h)
計算 V1 以 V2的乘冪。
語法
XMVECTOR XM_CALLCONV XMVectorPow(
[in] FXMVECTOR V1,
[in] FXMVECTOR V2
) noexcept;
參數
[in] V1
第一個向量。
[in] V2
第二個向量。
傳回值
傳回向量。 每個元件都是 V1 的對應元件,會引發為 V2中對應元件的強大功能。
備註
下列虛擬程式碼示範函式的作業:
XMVECTOR Result;
Result.x = pow(V1.x, V2.x);
Result.y = pow(V1.y, V2.y);
Result.z = pow(V1.z, V2.z);
Result.w = pow(V1.w, V2.w);
return Result;
平臺需求
Microsoft Visual Studio 2010 或 Microsoft Visual Studio 2012 搭配 Windows SDK for Windows 8。 支援 Win32 傳統型應用程式、Windows 市集應用程式和 Windows Phone 8 個應用程式。需求
目標平台 | Windows |
標頭 | directxmath.h (包含 DirectXMath.h) |