XMVectorExp2

Computes two raised to the power for each component. XMVectorExp is a compatibility alias for this function.

Syntax

XMVECTOR XMVectorExp2(
         XMVECTOR V
)  

Parameters

V
Type: XMVECTOR 

Vector used for the exponents of base two.

Return value

Type: XMVECTOR 

Returns a vector whose components are two raised to the power of the corresponding component of V.

Remarks

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;  

Requirements

Header: Declared in directxmath.h.

See also

XMVectorLog2

XMVectorExpE