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

Function Documentation#

template<u32 L, typename T>
constexpr Vec<L, bool> TRAP::Math::Equal(const Mat<L, L, T> &x, const Mat<L, L, T> &y, const Vec<L, T> &epsilon)#

Perform a component-wise equal-to comparison of two matrices taking epsilon into account.

Parameters:
  • x – Specifies the first matrix to be used in the comparison operation.

  • y – Specifies the second matrix to be used in the comparison operation.

  • epsilon – Specifies the epsilon to be used in the comparison operation.

Returns:

Component-wise comparison of |x - y| < epsilon. True if this expression is satisfied.