Returns the point on the specified Curve object closest to the given point.
Returns eOk if successful, or an appropriate error code if not.