Calculates the distance between to vectors of the same length.
the first vector
the second vector
the distance between the two vectors (always higher or equals than 0)
assert(distance(vector(0, 0), vector(1, 0)) == 1); assert(distance(vector(0, 0, 0) == vector(1, 1, 1)) == 3 ^^ .5); // 3 ^^ .5 is the squared root of 3
See Implementation
Calculates the distance between to vectors of the same length.