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

Function Documentation#

template<u32 L, typename T>
constexpr Vec<L, bool> TRAP::Math::IsInf(const Vec<L, T> &v)#

Determine whether the paramter is positive or negative infinity.

Parameters:

v – Specifies the value to test for infinity.

Returns:

True if x holds a positive infinity or negative infinity representation in the underlying implementation’s set of floating-point representations. False otherwise, including for implementations with no infinity representations.