Vector.len2

Square of euclidean length of the vector

only: if( is( typeof( dot(selftype.init,selftype.init) ) ) )

struct Vector(size_t N, T)
pure const @property
static if(is(typeof(T.init * T.init) == T) && is(typeof(T.init + T.init) == T))
len2
()

Meta