API - Chapitre 03.pdf - IUT d'Arles

API - Chapitre 03.pdf - IUT d'Arles API - Chapitre 03.pdf - IUT d'Arles

iut.arles.up.univ.mrs.fr
from iut.arles.up.univ.mrs.fr More from this publisher
10.03.2014 Views

3.2.9 Tracé de courbes splines Courbe passant par des points de contrôle. Point liste_points[] = {Point(60, 180), Point(30, 60)}; Point(120, 80), Point(170, 20), Point(220, 100)}; graphics.DrawCurve(&crayon, liste_points, 5, 1.0f); 22

Dernier paramètre = « tension » graphics.DrawCurve(&crayon, liste_points, 5, 1.0f ); Tension = 0.0f Tension = 1.0f Tension = 2.0f 23

3.2.9 Tracé de courbes splines<br />

Courbe passant par des points de contrôle.<br />

Point liste_points[] = {Point(60, 180), Point(30, 60)};<br />

Point(120, 80), Point(170, 20),<br />

Point(220, 100)};<br />

graphics.DrawCurve(&crayon, liste_points, 5, 1.0f);<br />

22

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!