Returns the parameter corresponding to the end point of this Curve object.
Returns eOk if successful, or an appropriate error code if not.