Vec.norm

Normalizes this vector, such that it will have a magnitude of 1.

struct Vec(T, size_t size)
ref @nogc
static if(isFloatingPoint!T)
MY_TYPE
norm
()
if (
isNumeric!T &&
size > 0
)

Return Value

Type: MY_TYPE

A reference to this vector, for method chaining.

Meta