XMVectorExp2 method

Computes two raised to the power for each component.

Syntax


XMVECTOR XMVectorExp2(
  [in]  XMVECTOR V
);

Parameters

V [in]

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

Microsoft Visual Studio 2010 or Microsoft Visual Studio 2012 with the Windows SDK for Windows 8.1. 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 = 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

Namespace

Use DirectX.

Header

DirectXMath.h

See also

XMVectorExpE
XMVectorLog2

 

 

Community Additions

ADD
Show:
© 2014 Microsoft