aboutsummaryrefslogtreecommitdiff
path: root/src/survive_reproject.c
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-03-11 03:04:24 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-03-11 14:54:29 -0600
commit89f37774395530ef7267d4115f1a6242e0e9ce49 (patch)
tree550d3faabe5a22ccd099d55290682bd0b01bc1d1 /src/survive_reproject.c
parentef2a7f197b6dbfb0d09bdb7011d57f94a3b24d28 (diff)
downloadlibsurvive-89f37774395530ef7267d4115f1a6242e0e9ce49.tar.gz
libsurvive-89f37774395530ef7267d4115f1a6242e0e9ce49.tar.bz2
Fixed survive_reproject to match the new coordinate system
Diffstat (limited to 'src/survive_reproject.c')
-rw-r--r--src/survive_reproject.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/survive_reproject.c b/src/survive_reproject.c
index 8ba4c77..7bfc7d7 100644
--- a/src/survive_reproject.c
+++ b/src/survive_reproject.c
@@ -86,9 +86,8 @@ void survive_reproject_from_pose_with_config(
for (int i = 0; i < 3; i++)
t_pt[i] = t_pt[i] - tvec[i];
- // If +Z is up, this is right
- FLT x = t_pt[0] / t_pt[2];
- FLT y = t_pt[1] / t_pt[2];
+ FLT x = -t_pt[0] / -t_pt[2];
+ FLT y = t_pt[1] / -t_pt[2];
double ang_x = atan(x);
double ang_y = atan(y);