Vectors  0.1
Librarie d'opérateurs vectoriels en 2D
Vect.h
Go to the documentation of this file.
1 #ifndef Vect_H
2 #define Vect_H
16 struct Vector {
18  int x;
20  int y;
21 };
22 typedef struct Vector* Vect;
23 
30 Vect new_Vect(int x, int y);
31 Vect add(Vect v1, Vect v2);
32 void print(Vect v);
33 #endif
Vect new_Vect(int x, int y)
constructeur
Definition: Vect.c:5
Vect add(Vect v1, Vect v2)
Definition: Vect.c:9
struct Vector * Vect
Definition: Vect.h:22
void print(Vect v)
Definition: Vect.c:12
vecteur 2D avec coordonnées entières (4 octets)
Definition: Vect.h:16
int y
Definition: Vect.h:20
int x
Definition: Vect.h:18