LSM303DLH Test Program for get angle.

Dependencies:   mbed

LSM303DLH/vector.h

Committer:
tosihisa
Date:
2012-05-06
Revision:
4:3c677edffb13
Parent:
3:f3796683b4c9

File content as of revision 4:3c677edffb13:

#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