Returns the distance between the input point and the closest point on this curve.
Distance value.
By default this function throws the exception "not Implemented". Should be implemented in derived classes.