Added minimum distance calculation between curve and point.