Template Function TRAP::Math::Equal(const Vec<L, T>&, const Vec<L, T>&, T)#
Function Documentation#
-
template<u32 L, typename T>
constexpr Vec<L, bool> TRAP::Math::Equal(const Vec<L, T> &x, const Vec<L, T> &y, T epsilon)# Perform a component-wise equal-to comparison of two vectors taking epsilon into account.
- Parameters:
x – Specifies the first vector to be used in the comparison operation.
y – Specifies the second vector to be used in the comparison operation.
epsilon –
- Returns:
Component-wise comparison of |x - y| < epsilon. True if this expression is satisfied.