imu01c

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers vector.h Source File

vector.h

00001 #ifndef vector_h
00002 #define vector_h
00003 typedef struct vector
00004 {
00005   float x, y, z;
00006 } vector;
00007 
00008 extern void vector_cross(const vector *a, const vector *b, vector *out);
00009 extern float vector_dot(const vector *a,const vector *b);
00010 extern void vector_normalize(vector *a);
00011 extern void vector_norm_xz(vector*a);
00012 extern void vector_norm_xy(vector*a);
00013 extern void vector_norm_yz(vector*a);
00014 #endif