Get the magnitude of the vector as a Float.
Get the distance between two vectors as a Float. (vec1-vec2).pow(2).sum.sqrt
Get the sum of the absolute differences as a Float. (vec1-vec2).abs.sum
.
Sometimes when just comparing distances it is not necessary to perform pow2 and sqrt calculations. In those situations this method will be a lot faster than -distance.
Dot product.
Get a new vector with normalized magnitude.
Get a new vector limited to max value.