diff options
-rw-r--r-- | sensors/orientationd/vector.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sensors/orientationd/vector.c b/sensors/orientationd/vector.c index 205b175..ee8ba49 100644 --- a/sensors/orientationd/vector.c +++ b/sensors/orientationd/vector.c @@ -19,6 +19,13 @@ #include "orientationd.h" +void vector_copy(vector *in, vector *out) +{ + out->x = in->x; + out->y = in->y; + out->z = in ->z; +} + void vector_add(vector *v, vector *a) { v->x += a->x; |