Fixed euclidean distance