summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-09-17 03:10:31 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-09-17 03:10:31 +0200
commit46401fcd2e4e5437e74ca9fca04c7521432566aa (patch)
tree054eb8f3679322b6125bd5c7ecab605ad47fb960
parent4be72d40c239ac35e6b974c389858226d860599d (diff)
ctor brevity
-rw-r--r--facetracknoir/tracker_types.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/facetracknoir/tracker_types.h b/facetracknoir/tracker_types.h
index a367371e..043c0420 100644
--- a/facetracknoir/tracker_types.h
+++ b/facetracknoir/tracker_types.h
@@ -7,10 +7,7 @@ struct T6DOF {
public:
double axes[6];
- T6DOF() {
- for (int i = 0; i < 6; i++)
- axes[i] = 0;
- }
+ T6DOF() : axes {0,0,0, 0,0,0 } {}
};
T6DOF operator-(const T6DOF& A, const T6DOF& B); // get new pose with respect to reference pose B