#include #include #include "Opacification-Sommet.h" struct sommet { double x; double y; }; sommet* creerSommet(void) { return (sommet*) calloc(1, sizeof(sommet)); } void affecterXSommet(sommet* s, double x) { s->x = x; } double retournerXSommet(sommet* s) { return s->x; } void affecterYSommet(sommet* s, double y) { s->y = y; } double retournerYSommet(sommet* s) { return s->y; } void libererSommet(sommet* s) { if (s != NULL) { free(s); } }