float function ( float arg0 ) { float loc0 = 1 - arg0 ; float loc1 = 3 * arg0 * ( loc0 * loc0 ) ; float loc2 = 3 * ( arg0 * arg0 ) * loc0 ; float loc3 = arg0 * arg0 * arg0 ; return ( loc1 * y1 ) + ( loc2 * y2 ) + loc3 ; }
utility function : when we are evaluating the spline , we only care about the y values . see #getxy for the details . concode_field_sep float t concode_elem_sep float y1 concode_elem_sep float length concode_elem_sep float x1 concode_elem_sep float y2 concode_elem_sep float x2 concode_elem_sep Collection<LengthItem> lengths concode_elem_sep float fraction concode_field_sep void setFraction concode_elem_sep float interpolate concode_elem_sep Point2D.Float getXY