Sommaire


Installer et compiler ces fichiers dans votre répertoire de travail.

c00d.c
/* ------------------------------------ */
/*  Save as :   c00d.c                  */
/* ------------------------------------ */
#include  "x_hfile.h"
/* ------------------------------------ */
int main(void)
{
CTRL_splot w;

  w.xmin =  -1;
  w.xmax = 100;             
  w.ymin =  -1;
  w.ymax = 100;

pt2d    P0 = i_pt2d(45.,50.),
        P1 = i_pt2d(50.,55.),
        P2 = i_pt2d(50.,60.),
        P3 = i_pt2d(48.,64.),

        P4 = i_pt2d(50.,52.),
        P5 = i_pt2d(60.,57.),
        P6 = i_pt2d(61.,64.),

        P7 = i_pt2d(35.,20.),
        P8 = i_pt2d(71.,42.),
        P9 = i_pt2d(61.,40.);


 printf(" Graph the cubic bezier curve"
        " with the control points,\n\n"
        " P0,P1,P2,P3\n\n");

 G_3_Cubic_Bezier_2d(
             w,
             P0,P1,P2,P3,P4,P5,P6,P7,P8,P9
            );

 printf(" To see the curve, "
        "open the file \"a_main.plt\" with Gnuplot.\n\n");

 stop();
 
 return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */


Trois courbes. Dessiner un "r".