Calculates distance to the specified extents.
0.0 if extents intersect or euclidean distance otherwise.