getDistanceBetweenVectors method
Returns the distance in meters between @vector1 and @vector2.
Implementation
double getDistanceBetweenVectors(Vector3 vector1, Vector3 vector2) {
num dx = vector1.x - vector2.x;
num dy = vector1.y - vector2.y;
num dz = vector1.z - vector2.z;
double distance = sqrt(dx * dx + dy * dy + dz * dz);
return distance;
}