Mathc initiation/a267
Installer et compiler ces fichiers dans votre répertoire de travail.
c00b.c |
---|
/* ------------------------------------ */
/* Save as : c00b.c */
/* ------------------------------------ */
#include "x_hfile.h"
/* ------------------------------------ */
int main(void)
{
printf(" Graph the quartic bezier curve"
" with the control points,\n\n"
" P0,P1,P2,P3\n\n");
G_3_quartic_Bezier_2d(
i_ctrl_splot(0.,200,0.,100., 0,0,0,0,0,0),
i_pt2d(50., 10.),
i_pt2d(20., 10.),
i_pt2d(10., 30.),
i_pt2d(20., 50.),
i_pt2d(50., 50.),
i_pt2d(50., 80.),
i_pt2d(75., 90.),
i_pt2d(100.,80.),
i_pt2d(100.,50.),
i_pt2d(130.,50.),
i_pt2d(140.,30.),
i_pt2d(130.,10.),
i_pt2d(100.,10.)
);
printf(" To see the curve, "
" ... load \"a_main.plt\" ... with gnuplot. \n\n");
stop();
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Dessinons trois courbes.