aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelen Ginn <helen@strubi.ox.ac.uk>2018-04-27 22:24:42 +0200
committerThomas White <taw@physics.org>2018-05-02 09:46:14 +0200
commitd673548e1f0a21fbd677923c2ab0bcbcb487c742 (patch)
tree80fad2d2509cc212666e5b96864d2dc33719d599
parentf06de02c7350ebf41c91cac7309751317c4c0943 (diff)
rvec add rvec function
-rw-r--r--libcrystfel/src/taketwo.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libcrystfel/src/taketwo.c b/libcrystfel/src/taketwo.c
index 0dc1ed51..082e7886 100644
--- a/libcrystfel/src/taketwo.c
+++ b/libcrystfel/src/taketwo.c
@@ -245,6 +245,15 @@ static struct rvec new_rvec(double new_u, double new_v, double new_w)
return new_rvector;
}
+static struct rvec rvec_add_rvec(struct rvec first, struct rvec second)
+{
+ struct rvec diff = new_rvec(second.u + first.u,
+ second.v + first.v,
+ second.w + first.w);
+
+ return diff;
+}
+
static struct rvec diff_vec(struct rvec from, struct rvec to)
{