aboutsummaryrefslogtreecommitdiff
path: root/src/detector.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/detector.c')
-rw-r--r--src/detector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/detector.c b/src/detector.c
index 2a4e3579..d8d385c9 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -57,7 +57,7 @@ struct rvec get_q(struct image *image, double xs, double ys,
q.u = k * sin(twotheta)*cos(az);
q.v = k * sin(twotheta)*sin(az);
- q.w = k - k * cos(twotheta);
+ q.w = k * (cos(twotheta) - 1.0);
return quat_rot(q, image->orientation);
}