diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-04 10:36:00 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-04 10:36:00 +0200 |
commit | ee7530c39aaa769b7baea5fb4ece27786e04d521 (patch) | |
tree | 1ca2f63c790bdb4d087ec6b05942782079c5dfc0 /opentrack/simple-mat.hpp | |
parent | 299e529fb955eecbc2bc2f2d8830c4f54fe5777d (diff) |
logic/tracker, api/simple-mat: don't convert rad <-> deg all the time
Diffstat (limited to 'opentrack/simple-mat.hpp')
-rw-r--r-- | opentrack/simple-mat.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/opentrack/simple-mat.hpp b/opentrack/simple-mat.hpp index f5680ec4..8dc03014 100644 --- a/opentrack/simple-mat.hpp +++ b/opentrack/simple-mat.hpp @@ -253,3 +253,9 @@ euler_t OPENTRACK_API_EXPORT rmat_to_euler(const dmat<3, 3>& R); } // end ns euler template<int h_, int w_> using dmat = Mat<double, h_, w_>; + +template<typename num, int h, int w> +inline Mat<num, h, w> operator*(num scalar, const Mat<num, h, w>& mat) +{ + return mat * scalar; +} |