diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-22 10:09:41 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-23 11:05:33 +0200 |
commit | 8d428560bbcf2d5b96df406e3c6b7c5830571058 (patch) | |
tree | 5f52ff8d42241ed3733695bd1d9bcf781a86d39b /opentrack/simple-mat.cpp | |
parent | 256b5d2204bcae3db62c86cdf4774bdaa448c6b8 (diff) |
logic, api: switch euler to use euler_t input. adjust usages.
Diffstat (limited to 'opentrack/simple-mat.cpp')
-rw-r--r-- | opentrack/simple-mat.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/opentrack/simple-mat.cpp b/opentrack/simple-mat.cpp index 6a5421c1..ed372299 100644 --- a/opentrack/simple-mat.cpp +++ b/opentrack/simple-mat.cpp @@ -30,11 +30,11 @@ euler_t rmat_to_euler(const dmat<3, 3>& R) } // tait-bryan angles, not euler -rmat euler_to_rmat(const double* input) +rmat euler_to_rmat(const euler_t input) { - const double H = input[0]; - const double P = input[1]; - const double B = input[2]; + const double H = input(0); + const double P = input(1); + const double B = input(2); const auto c1 = cos(H); const auto s1 = sin(H); |