From: Simon Fenney <simon.fenney@po...>  20051013 12:26:19

Danny Kodicek wrote: >=20 > Alternatively (probably equivalently), how can I convert between a 2D=20 > CatmullRom spline and a Bezier curve?=20 That's easy enough. You use the matrix formulation for parametric = curves. If you have a cubic parametric curve of type A and want to = convert to type B, and Pa are the control points for A, then you need = the matrices for types A and B, Ma and Mb. You then apply Pb =3D Mb^1 * Ma * Pa =20 The matrix for CatmullRom is 1/2 * [ 1 3 1 1] [ 2 5 4 1] [1 0 1 0] [0 2 0 0] and for Bezier (which you'll have to invert yourself) is=20 [1 3 3 1] [3 6 3 0] [3 3 0 0] [1 0 0 0] =20 Hope that helps. Simon 