Получить расстояние между векторами в метрах:
private float getDistanceBetweenVectorsInMeters(Vector3 to, Vector3 from)
// Compute the difference vector between the two hit locations.
float dx = to.x - from.x;
float dy = to.y - from.y;
float dz = to.z - from.z;
// Compute the straight-line distance (distanceMeters)
return (float) Math.sqrt(dx * dx + dy * dy + dz * dz);
}