XMVectorExpE 函数 (directxmath.h)
计算每个组件的功率 (~2.71828) 。
语法
XMVECTOR XM_CALLCONV XMVectorExpE(
[in] FXMVECTOR V
) noexcept;
参数
[in] V
用于底 e 的指数的向量。
返回值
返回一个向量,其分量被提升为 V 的相应分量的幂。
备注
平台要求
支持 Win32 桌面应用、Windows 应用商店应用和 Windows Phone 8 应用。XMVectorExpE 是 DirectXMath 版本 3.05 的新增功能。
它类似于 Windows 8 的现有 XMVectorExp 函数,但计算 base e 而不是 base 2。
XMVectorExpE 的实现方式如下:
XMVECTOR Result;
Result.x = expf(V.x);
Result.y = expf(V.y);
Result.z = expf(V.z);
Result.w = expf(V.w);
return Result;
要求
目标平台 | Windows |
标头 | directxmath.h (包括 DirectXMath.h) |