isNaN

Checks whether or not at least one member of the vector is not a number (nan).

pure nothrow @safe @nogc
bool
isNaN
(
T
)
()
if (
isVector!T &&
T.isFloatingPoint
)

Examples

assert(!isNaN(vector(0, 2.1)));
assert(isNaN(vector(float.init, -double.init)));
assert(isNaN(vector(0, float.nan)));

Meta