XMVectorExp2 function (directxmath.h)
Computes two raised to the power for each component.
Syntax
XMVECTOR XM_CALLCONV XMVectorExp2(
[in] FXMVECTOR V
) noexcept;
Parameters
[in] V
Vector used for the exponents of base two.
Return value
Returns a vector whose components are two raised to the power of the corresponding component of V.
Remarks
Platform Requirements
Supported for Win32 desktop apps, Windows Store apps, and Windows Phone 8 apps.XMVectorExp2 is new for DirectXMath version 3.05, but it's just a renamed version of the existing XMVectorExp function for Windows 8.
XMVectorExp2 is implemented like this:
XMVECTOR Result;
Result.x = exp2f(V.x);
Result.y = exp2f(V.y);
Result.z = exp2f(V.z);
Result.w = exp2f(V.w);
return Result;
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | directxmath.h (include DirectXMath.h) |