XMVectorLog2

Computes the base two logarithm of each component of a vector. XMVectorLog is a compatibility alias for this function.

Syntax

XMVECTOR XMVectorLog2(
         XMVECTOR V
)  

Parameters

V
Type: XMVECTOR 

Vector for which to compute the base two logarithm.

Return value

Type: XMVECTOR 

Returns a vector whose components are base two logarithm of the corresponding components of V.

Remarks

The following pseudocode shows how this function is implemented.

XMVECTOR Result;

Result.x = logf(V.x) / logf(2);
Result.y = logf(V.y) / logf(2);
Result.z = logf(V.z) / logf(2);
Result.w = logf(V.w) / logf(2);

return Result;  

Requirements

Header: Declared in directxmath.h.

See also

XMVectorExp2

XMVectorLogE