Template Function TRAP::Math::FMod(T, T)#

Function Documentation#

template<typename T>
constexpr T TRAP::Math::FMod(T x, T y)#

Similar to ‘Mod’ but with a different rounding and integer support.

Returns:

‘x - y * Trunc(x / y)’ instead of ‘x - y * Floor(x / y)’.