b9dda3f9f2ef545a70f16860c119f33894531eb0
[aversive.git] / modules / base / math / geometry / vect_base.h
1 typedef struct _vect_t {
2   int32_t x;
3   int32_t y;
4 }vect_t;
5
6 typedef struct _point_t {
7   int32_t x;
8   int32_t y;
9 }point_t;
10
11
12  
13 /* Return scalar product */
14 int32_t 
15 vect_pscal(vect_t *v, vect_t *w);
16
17 /* Return Z of vectorial product */
18 int32_t 
19 vect_pvect(vect_t *v, vect_t *w);
20
21 /* Return scalar product */
22 int8_t 
23 vect_pscal_sign(vect_t *v, vect_t *w);
24
25 /* Return Z of vectorial product */
26 int8_t 
27 vect_pvect_sign(vect_t *v, vect_t *w);
28
29 /* norm of a vector */
30 float vect_norm(vect_t *v);
31 void vect_rot_trigo(vect_t *v);
32 void vect_rot_retro(vect_t *v);
33 float vect_get_angle(vect_t *v, vect_t *w);
34