summaryrefslogtreecommitdiffstats
path: root/dev/a4-dance/amc_util.h
blob: 5593a3bc02121d2cc21f72f9e177dc7e78ef5afb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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