summaryrefslogtreecommitdiffhomepage
path: root/pose-widget/glwidget.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-07-21 14:25:03 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-07-23 11:05:33 +0200
commit9fec162fd5ac3f94850653c63f45ed0a83c5a9d0 (patch)
tree8e5f336af588e01de6fda24d17c3578e66d40636 /pose-widget/glwidget.h
parentfbc79e91ce1dd7904a4ed55891bfde38797d0c22 (diff)
pose-widget: don't do barycentric lookup twice
In the affine transformation (aka the pose widget) of The Octopus we use barycentric coordinates of two triangles making up The Octopus rectangle. Triangles are symmetrical. Take advantage of the symmetry (no perspective transform applied) and take barycentric coordinates only once.
Diffstat (limited to 'pose-widget/glwidget.h')
-rw-r--r--pose-widget/glwidget.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pose-widget/glwidget.h b/pose-widget/glwidget.h
index 25823985..0d48ede9 100644
--- a/pose-widget/glwidget.h
+++ b/pose-widget/glwidget.h
@@ -31,7 +31,7 @@ public:
~GLWidget();
void rotateBy(float xAngle, float yAngle, float zAngle, float x, float y, float z);
protected:
- void paintEvent ( QPaintEvent * event ) override;
+ void paintEvent (QPaintEvent *event) override;
private:
vec2 project(const vec3& point);
vec3 project2(const vec3& point);