From f30fcc505dc3ce2df25dce16b329c90c32049862 Mon Sep 17 00:00:00 2001 From: Jessie Speert Date: Mon, 8 Mar 2021 19:09:55 -0800 Subject: Uploading Assignment 4 --- dev/a4-dance/amc_util.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 dev/a4-dance/amc_util.h (limited to 'dev/a4-dance/amc_util.h') 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 + + +// 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 +T amc2meter(T t) { + return t * 0.056444f; +} + + +#endif -- cgit v1.2.3