Vec.mag2

Determines the squared magnitude of this vector.

struct Vec(T, size_t size)
const @nogc
double
mag2
()
if (
isNumeric!T &&
size > 0
)

Return Value

Type: double

The squared magnitude of this vector.

Meta