aboutsummaryrefslogtreecommitdiff
path: root/include/libsurvive
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 /include/libsurvive
parent0bc3b02ff3c4f975004fb19e226c3177fa811b4e (diff)
downloadlibsurvive-8a0831f2b9e458d8f1976c27f7865166ad8de6a4.tar.gz
libsurvive-8a0831f2b9e458d8f1976c27f7865166ad8de6a4.tar.bz2
Moved pose to linmath to support stronger typing
Diffstat (limited to 'include/libsurvive')
-rw-r--r--include/libsurvive/survive_types.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/include/libsurvive/survive_types.h b/include/libsurvive/survive_types.h
index 7253df0..3ea6253 100644
--- a/include/libsurvive/survive_types.h
+++ b/include/libsurvive/survive_types.h
@@ -1,6 +1,7 @@
#ifndef _SURVIVE_TYPES_H
#define _SURVIVE_TYPES_H
+#include "linmath.h"
#include "stdint.h"
#ifdef __cplusplus
@@ -21,12 +22,8 @@ extern "C" {
#define _FLT_format2(f) f##_format
#define _FLT_format(f) _FLT_format2(f)
#define FLT_format _FLT_format(FLT)
-
-typedef struct SurvivePose
-{
- FLT Pos[3];
- FLT Rot[4]; //This is the [wxyz] quaternion, in wxyz format.
-} SurvivePose;
+
+typedef LinmathPose SurvivePose;
//Careful with this, you can't just add another one right now, would take minor changes in survive_data.c and the cal tools.
//It will also require a recompile. TODO: revisit this and correct the comment once fixed.