distance_to_curve
float segDist = distance_to_curve(p, fPath[i].point,
float segDist = distance_to_curve(p, fPath[fPointCount - 1].point,