XMVectorMod 函数 (directxmath.h)
计算两个向量的商的每个组件浮点余数。
语法
XMVECTOR XM_CALLCONV XMVectorMod(
[in] FXMVECTOR V1,
[in] FXMVECTOR V2
) noexcept;
参数
[in] V1
矢量红利。
[in] V2
向量除数。
返回值
返回一个向量,其分量是除法的浮点余数。
备注
以下伪代码演示函数的操作:
XMVECTOR Result;
Result.x = fmod(V1.x, V2.x);
Result.y = fmod(V1.y, V2.y);
Result.z = fmod(V1.z, V2.z);
Result.w = fmod(V1.w, V2.w);
return Result;
平台要求
带有 Windows SDK for Windows 8 的 Microsoft Visual Studio 2010 或 Microsoft Visual Studio 2012。 支持 Win32 桌面应用、Windows 应用商店应用和 Windows Phone 8 应用。要求
目标平台 | Windows |
标头 | directxmath.h (包括 DirectXMath.h) |