XMVectorExpE function (directxmath.h)

Computes e (~2.71828) raised to the power for each component.

Syntax

XMVECTOR XM_CALLCONV XMVectorExpE(
  [in] FXMVECTOR V
) noexcept;

Parameters

[in] V

Vector used for the exponents of base e.

Return value

Returns a vector whose components are e 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.

XMVectorExpE is new for DirectXMath version 3.05.

It's similar to the existing XMVectorExp function for Windows 8, but computes base e instead of base 2.

XMVectorExpE is implemented like this:


XMVECTOR Result;

Result.x = expf(V.x);
Result.y = expf(V.y);
Result.z = expf(V.z);
Result.w = expf(V.w);

return Result;

Requirements

Requirement Value
Target Platform Windows
Header directxmath.h (include DirectXMath.h)

See also

Transcendental Vector Functions

XMVectorExp2

XMVectorExp10

XMVectorLogE