Sommaire


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

c01b.c
/* ------------------------------------ */
/*  Save as :   c01b.c                  */
/* ------------------------------------ */
#include  "x_hfile.h"
/* ------------------------------------ */
int main(void)
{
 printf(" Graph the cubic bezier\n\n");

    G_Cubic_Bezier_2d(
             i_ctrl_splot(-20,20,-10,10, 0,0,0,0,0,0),

             i_pt2d(05.,00.),
             i_pt2d(05.,03.5),
             i_pt2d(02.5,05.),
             i_pt2d(00.,05.) );

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

 stop();

 return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */


Dessinons la courbe et le cercle. Il faut annuler la commande // dans la fonction G_cubic_Bezier_2d();


//           " \"circle\"  with linesp lt 1 pt 1,\\\n"