Template Function TRAP::Math::FMod(Vec<L, T>, T)#

Function Documentation#

template<u32 L, typename T>
constexpr Vec<L, T> TRAP::Math::FMod(Vec<L, 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)’.