distances between points of intersection