[][src]Function directx_math::XMVectorExp2

pub fn XMVectorExp2(V: FXMVECTOR) -> XMVECTOR

Computes two raised to the power for each component.

Parameters

V 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

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;

Reference

https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMVectorExp2