src/geometry.h

changeset 123
e3fe3617b631
parent 122
b54b350dff5d
child 168
24590af32ad6
equal deleted inserted replaced
122:b54b350dff5d 123:e3fe3617b631
91 glm::vec3 scalingVector(const glm::mat4 matrix); 91 glm::vec3 scalingVector(const glm::mat4 matrix);
92 LineSegment2D top(const QRectF& rectangle); 92 LineSegment2D top(const QRectF& rectangle);
93 LineSegment2D bottom(const QRectF& rectangle); 93 LineSegment2D bottom(const QRectF& rectangle);
94 LineSegment2D left(const QRectF& rectangle); 94 LineSegment2D left(const QRectF& rectangle);
95 LineSegment2D right(const QRectF& rectangle); 95 LineSegment2D right(const QRectF& rectangle);
96 bool convex(const std::vector<glm::vec3>& polygon); 96 bool isConvex(const std::vector<glm::vec3>& polygon);
97 struct ScalingExtract 97 struct ScalingExtract
98 { 98 {
99 glm::vec3 scaling; 99 glm::vec3 scaling;
100 glm::mat4 unscaled; 100 glm::mat4 unscaled;
101 }; 101 };

mercurial