Distances between structure