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

Function Documentation#

template<u32 L, typename T>
constexpr Vec<L, T> TRAP::Math::Mod(Vec<L, T> x, T y)#

Retrieve value of x modulo y.

Parameters:
  • x – Specify the value to evaluate.

  • y – Specify the value to evaluate.

Returns:

x - y * Floor(x / y) for each component in x using the floating point value y.