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:48 +0100 |
commit | 8565dd7953028613c82a9adfe254be3d21e59b82 (patch) | |
tree | 7b5fdcb2f9498a6d833655421fe701860a149da9 | |
parent | d64cd783e6864f898105e8895371b29c8cb68023 (diff) | |
download | device_samsung_p3100-8565dd7953028613c82a9adfe254be3d21e59b82.zip device_samsung_p3100-8565dd7953028613c82a9adfe254be3d21e59b82.tar.gz device_samsung_p3100-8565dd7953028613c82a9adfe254be3d21e59b82.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; |