From 8565dd7953028613c82a9adfe254be3d21e59b82 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Sun, 24 Mar 2013 12:37:26 +0100 Subject: sensors: Add missing vector function Signed-off-by: Paul Kocialkowski --- sensors/orientationd/vector.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- cgit v1.1