diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-08-11 03:48:13 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-08-11 03:48:13 +0200 |
commit | 6685572195f1e3e22a803ca984d3566516488815 (patch) | |
tree | 0c56af3ce90a406782381a3c5d58661678ba0a58 /pose-widget/glwidget.h | |
parent | 32c7d8370faca901162500a26f43a445f4f8e095 (diff) |
pose-widget: use floats
Diffstat (limited to 'pose-widget/glwidget.h')
-rwxr-xr-x[-rw-r--r--] | pose-widget/glwidget.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pose-widget/glwidget.h b/pose-widget/glwidget.h index 88961fbd..aaea3e06 100644..100755 --- a/pose-widget/glwidget.h +++ b/pose-widget/glwidget.h @@ -12,16 +12,17 @@ #include "opentrack/plugin-api.hpp" #include "opentrack/simple-mat.hpp" -typedef dmat<2, 1> vec2; -typedef dmat<3, 1> vec3; -typedef dmat<3, 3> rmat; +typedef Mat<float, 2, 1> vec2; +typedef Mat<float, 3, 1> vec3; +typedef Mat<float, 3, 3> rmat; class GLWidget : public QWidget { public: + using num = float; GLWidget(QWidget *parent); ~GLWidget(); - void rotateBy(double xAngle, double yAngle, double zAngle, double x, double y, double z); + void rotateBy(float xAngle, float yAngle, float zAngle, float x, float y, float z); protected: void paintEvent ( QPaintEvent * event ) override; private: |