Returns the distance to the point on this curve closest to the specified point.
By default this function throws exception "not Implemented". Should be implemented in derived classes.