improve FloatCurveXY API