summaryrefslogtreecommitdiffstats
path: root/dev/a4-dance/amc_util.h
diff options
context:
space:
mode:
authorKT <tran0563@umn.edu>2021-10-19 14:03:28 -0500
committerKT <tran0563@umn.edu>2021-10-19 14:03:28 -0500
commit12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6 (patch)
tree8e89330e51de3aa45ad3fafc57dc14eb5e1786e2 /dev/a4-dance/amc_util.h
parentPublish a3 (diff)
downloadcsci4611-12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6.tar
csci4611-12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6.tar.gz
csci4611-12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6.tar.bz2
csci4611-12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6.tar.lz
csci4611-12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6.tar.xz
csci4611-12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6.tar.zst
csci4611-12b0b74d43b7d93eee82ae6fa3dced499cd8a1f6.zip
Publish a4
Diffstat (limited to 'dev/a4-dance/amc_util.h')
-rw-r--r--dev/a4-dance/amc_util.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/dev/a4-dance/amc_util.h b/dev/a4-dance/amc_util.h
new file mode 100644
index 0000000..5593a3b
--- /dev/null
+++ b/dev/a4-dance/amc_util.h
@@ -0,0 +1,19 @@
+#ifndef AMC_UTIL_H_
+#define AMC_UTIL_H_
+
+#include <mingfx.h>
+
+
+// Converts amc mocap units to meters
+
+inline Point3 amc2meter(Point3 p) {
+ return Point3(p[0] * 0.056444f, p[1] * 0.056444f, p[2] * 0.056444f);
+}
+
+template <typename T>
+T amc2meter(T t) {
+ return t * 0.056444f;
+}
+
+
+#endif