isFinite

Checks whether or not every member of the vector is finite (not infite, -inifite, nan).

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

Examples

assert(isFinite(vector(1, 2)));
assert(isFinite(vector(float.min, float.max)));
assert(!isFinite(vector(1, float.nan)));
assert(!isFinite(vector(-float.infinity, 1f/0f)));

Meta