diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2013-03-24 12:37:26 +0100 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2013-03-24 12:37:26 +0100 |
commit | a8f4e0c3ebe620cb58efea9ac0347bf094125357 (patch) | |
tree | a6753b5024d409148978f0de301ce151bc2827dc | |
parent | d6f69a49638856f788a715ff2dfb548fbe570da6 (diff) | |
download | device_samsung_p5100-a8f4e0c3ebe620cb58efea9ac0347bf094125357.zip device_samsung_p5100-a8f4e0c3ebe620cb58efea9ac0347bf094125357.tar.gz device_samsung_p5100-a8f4e0c3ebe620cb58efea9ac0347bf094125357.tar.bz2 |
sensors: Add missing vector function
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-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; |