PiecewiseCurve should now be complete but is untested.