Interface library for STMicro LSM303DLH 3-axis magnetometer w/ 3-axis acceleromter. Computes magnetic heading.

Fork of LSM303DLH by Michael Shimniok

vector.h

Committer:
shimniok
Date:
2011-04-06
Revision:
0:de767f4959ef

File content as of revision 0:de767f4959ef:

#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