compatibility changes
Fork of LSM303DLHC by
Diff: vector.h
- Revision:
- 5:0136aae4f1ff
- Parent:
- 0:de767f4959ef
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vector.h Fri Sep 26 23:05:10 2014 +0000 @@ -0,0 +1,11 @@ +#ifndef vector_h +#define vector_h +typedef struct vector +{ + float x, y, z; +} vector; + +extern void vector_cross(const vector *a, const vector *b, vector *out); +extern float vector_dot(const vector *a,const vector *b); +extern void vector_normalize(vector *a); +#endif \ No newline at end of file