If you consider the two given vectors as (x,y,z) points instead then this will compute the distance between those two points.
a |
The first point |
b |
The second point |
The distance between two points given as 3 component vectors. |