If m is the number of points in ContourFrom, and n the number of points in ContourTo, then distance_contours_xld has complexity O(mlog(n)) for 'point_to_point', and O(mn) for 'point_to_segment'. In case the template contour ContourTo is repeatedly used, the operators create_...