
LSM303DLH Test Program for get angle.
Diff: LSM303DLH/vector.h
- Revision:
- 3:f3796683b4c9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LSM303DLH/vector.h Sun May 06 05:14:30 2012 +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