aboutsummaryrefslogtreecommitdiff
path: root/src/survive_reproject.c
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-03-21 09:11:54 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-03-21 09:11:54 -0600
commit8a0831f2b9e458d8f1976c27f7865166ad8de6a4 (patch)
tree028773b7a0ae042c6bb9b3cc21933a617c939b65 /src/survive_reproject.c
parent0bc3b02ff3c4f975004fb19e226c3177fa811b4e (diff)
downloadlibsurvive-8a0831f2b9e458d8f1976c27f7865166ad8de6a4.tar.gz
libsurvive-8a0831f2b9e458d8f1976c27f7865166ad8de6a4.tar.bz2
Moved pose to linmath to support stronger typing
Diffstat (limited to 'src/survive_reproject.c')
-rw-r--r--src/survive_reproject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/survive_reproject.c b/src/survive_reproject.c
index 7bfc7d7..eabdb07 100644
--- a/src/survive_reproject.c
+++ b/src/survive_reproject.c
@@ -75,13 +75,13 @@ static FLT gibf(bool useSin, FLT v) {
void survive_reproject_from_pose_with_config(
const SurviveContext *ctx, const survive_calibration_config *config,
int lighthouse, const SurvivePose *pose, const FLT *pt, FLT *out) {
- FLT invq[4];
+ LinmathQuat invq;
quatgetreciprocal(invq, pose->Rot);
- FLT tvec[3];
+ LinmathPoint3d tvec;
quatrotatevector(tvec, invq, pose->Pos);
- FLT t_pt[3];
+ LinmathPoint3d t_pt;
quatrotatevector(t_pt, invq, pt);
for (int i = 0; i < 3; i++)
t_pt[i] = t_pt[i] - tvec[i];