pointToCurveDistance