Mathc initiation/a266
Installer et compiler ces fichiers dans votre répertoire de travail.
c00a.c |
---|
/* ------------------------------------ */
/* Save as : c00a.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_quartic_Bezier_2d(
i_ctrl_splot(0,100,0,50, 0,0,0,0,0,0),
i_pt2d(40.,10.),
i_pt2d(40.,40.),
i_pt2d(50.,40.),
i_pt2d(60.,40.),
i_pt2d(60.,10.)
);
printf(" To see the curve, "
" ... load \"a_main.plt\" ... with gnuplot. \n\n");
stop();
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Dessinons une courbe.