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

Function Documentation#

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