euclidean distance for POINT_TYPE