2 * moon-curves.h: A set of primitives + alghos for solving Y at X problmem
3 * for cubic curves. This is used ONLY for KeySpline animation,
4 * not used in any way for drawing.
7 * Moonlight List (moonlight-list@lists.ximian.com)
9 * Copyright 2007 Novell, Inc. (http://www.novell.com)
11 * See the LICENSE file included with the distribution for details.
15 #ifndef __MOON_CURVES_H__
16 #define __MOON_CURVES_H__
44 void moon_quadratic_from_cubic (moon_quadratic
*dest
, moon_cubic
*src
);
45 double moon_quadratic_y_for_x (double x
, moon_quadratic
*src
);
46 double moon_quadratic_array_y_for_x (moon_quadratic
*qarr
, double x
, int count
);
47 void moon_convert_cubics_to_quadratics (moon_quadratic
*dest_array
, moon_cubic
*src_array
, int count
);
48 void moon_subdivide_cubic (moon_cubic
*dest1
, moon_cubic
*dest2
, moon_cubic
*src
);
49 void moon_subdivide_cubic_at_level (moon_cubic
*b
, int lvl
, moon_cubic
*src
);