summaryrefslogtreecommitdiffhomepage
path: root/FaceTrackNoIR/tracker_types.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-03-22 20:48:17 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-03-22 20:48:17 +0100
commit3089c4bbc10e98d18f43e8a70e7a3d0c0eaf0900 (patch)
treec6f985472c05372417ecd4a861f6c2f346b63fd3 /FaceTrackNoIR/tracker_types.cpp
parent3e1515e88c6f750c193ed9b9908d8a9c09e5b025 (diff)
Downcase. PLEASE TURN OFF IGNORING CASE IN GIT CONFIG!!!
.git/config: [core] ignorecase = false
Diffstat (limited to 'FaceTrackNoIR/tracker_types.cpp')
-rw-r--r--FaceTrackNoIR/tracker_types.cpp44
1 files changed, 0 insertions, 44 deletions
diff --git a/FaceTrackNoIR/tracker_types.cpp b/FaceTrackNoIR/tracker_types.cpp
deleted file mode 100644
index cdd8d239..00000000
--- a/FaceTrackNoIR/tracker_types.cpp
+++ /dev/null
@@ -1,44 +0,0 @@
-#include "tracker_types.h"
-#include "rotation.h"
-
-const double PI = 3.14159265358979323846264;
-const double D2R = PI/180.0;
-const double R2D = 180.0/PI;
-
-T6DOF operator-(const T6DOF& A, const T6DOF& B)
-{
- Rotation R_A(A.yaw*D2R, A.pitch*D2R, A.roll*D2R);
- Rotation R_B(B.yaw*D2R, B.pitch*D2R, B.roll*D2R);
- Rotation R_C = R_A * R_B.inv();
-
- T6DOF C;
- R_C.toEuler(C.yaw, C.pitch, C.roll);
- C.yaw *= R2D;
- C.pitch *= R2D;
- C.roll *= R2D;
-
- C.x = A.x - B.x;
- C.y = A.y - B.y;
- C.z = A.z - B.z;
- //C.frame_number?
- return C;
-}
-
-T6DOF operator+(const T6DOF& A, const T6DOF& B)
-{
- Rotation R_A(A.yaw*D2R, A.pitch*D2R, A.roll*D2R);
- Rotation R_B(B.yaw*D2R, B.pitch*D2R, B.roll*D2R);
- Rotation R_C = R_A * R_B;
-
- T6DOF C;
- R_C.toEuler(C.yaw, C.pitch, C.roll);
- C.yaw *= R2D;
- C.pitch *= R2D;
- C.roll *= R2D;
-
- C.x = A.x + B.x;
- C.y = A.y + B.y;
- C.z = A.z + B.z;
- //C.frame_number?
- return C;
-}