Computes two raised to the power for each component. XMVectorExp is a compatibility alias for this function.
XMVECTOR XMVectorExp2(
XMVECTOR V
)
V
Type: XMVECTOR
Vector used for the exponents of base two.
Type: XMVECTOR
Returns a vector whose components are two raised to the power of the corresponding component of V.
The following pseudocode shows how this function is implemented.
XMVECTOR Result;
Result.x = powf(2.0f, V.x);
Result.y = powf(2.0f, V.y);
Result.z = powf(2.0f, V.z);
Result.w = powf(2.0f, V.w);
return Result;
Header: Declared in directxmath.h.