XMVectorLog2 函数 (directxmath.h)
计算向量的每个分量的两个基对数。
语法
XMVECTOR XM_CALLCONV XMVectorLog2(
[in] FXMVECTOR V
) noexcept;
参数
[in] V
要计算其基础两对数的向量。
返回值
返回一个向量,其组件是 V 的相应组件的两个基数。
备注
平台要求
Microsoft Visual Studio 2010 或 Microsoft Visual Studio 2012 与 Windows SDK for Windows 8.1。 支持 Win32 桌面应用、Windows 应用商店应用和 Windows Phone 8 应用。XMVectorLog2 是 DirectXMath 版本 3.05 的新增功能,但它只是适用于 Windows 8 的现有 XMVectorLog 函数的重命名版本。
XMVectorLog2 的实现方式如下:
XMVECTOR Result;
Result.x = log2f(V.x);
Result.y = log2f(V.y);
Result.z = log2f(V.z);
Result.w = log2f(V.w);
return Result;
要求
目标平台 | Windows |
标头 | directxmath.h (包括 DirectXMath.h) |