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

Function Documentation#

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