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

Function Documentation#

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

Determine whether the parameter is a number.

Note

When using compiler fast math, this function may fail!

Parameters:

v – Specifies the value to test for NaN.

Returns:

True if x hold a NaN (not a number) representation in the underlying implementation’s set of floating-point representations. False otherwise, including for implementations with no NaN representations.