magnitude

Returns the magnitude (Euclidean length) of a Vector.

@safe @nogc nothrow
magnitude
(
T
uint N
)
(
const auto ref Vector!(T, N) vec
)
out (r) { assert (r >= 0, "Vector magnitude should be non-negative!"); }

Meta