Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of LSM303DLHTest by
LSM303DLH/vector.h@3:f3796683b4c9, 2012-05-06 (annotated)
- Committer:
- tosihisa
- Date:
- Sun May 06 05:14:30 2012 +0000
- Revision:
- 3:f3796683b4c9
An angle of inclination is obtained using an accelerometer.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| tosihisa | 3:f3796683b4c9 | 1 | #ifndef vector_h |
| tosihisa | 3:f3796683b4c9 | 2 | #define vector_h |
| tosihisa | 3:f3796683b4c9 | 3 | typedef struct vector |
| tosihisa | 3:f3796683b4c9 | 4 | { |
| tosihisa | 3:f3796683b4c9 | 5 | float x, y, z; |
| tosihisa | 3:f3796683b4c9 | 6 | } vector; |
| tosihisa | 3:f3796683b4c9 | 7 | |
| tosihisa | 3:f3796683b4c9 | 8 | extern void vector_cross(const vector *a, const vector *b, vector *out); |
| tosihisa | 3:f3796683b4c9 | 9 | extern float vector_dot(const vector *a,const vector *b); |
| tosihisa | 3:f3796683b4c9 | 10 | extern void vector_normalize(vector *a); |
| tosihisa | 3:f3796683b4c9 | 11 | #endif |
