normalize

Normalizes a vector (any size).

Parameters

vec

The vector to normalize