Optimized calculating delaunay distance.