136 glm::vec3 scalingVector(const glm::mat4 matrix); |
136 glm::vec3 scalingVector(const glm::mat4 matrix); |
137 LineSegment2D top(const QRectF& rectangle); |
137 LineSegment2D top(const QRectF& rectangle); |
138 LineSegment2D bottom(const QRectF& rectangle); |
138 LineSegment2D bottom(const QRectF& rectangle); |
139 LineSegment2D left(const QRectF& rectangle); |
139 LineSegment2D left(const QRectF& rectangle); |
140 LineSegment2D right(const QRectF& rectangle); |
140 LineSegment2D right(const QRectF& rectangle); |
141 bool isConvex(const Quadrilateral& quad); |
141 enum class convexity_e { concave, convex }; |
142 bool isConvex(const std::vector<glm::vec3>& polygon); |
142 convexity_e quadrilateral_convexity(const Quadrilateral& quad); |
|
143 convexity_e polygon_convexity(const std::vector<glm::vec3>& polygon); |
143 Winding winding(const QPolygonF& polygon); |
144 Winding winding(const QPolygonF& polygon); |
144 struct ScalingExtract |
145 struct ScalingExtract |
145 { |
146 { |
146 glm::vec3 scaling; |
147 glm::vec3 scaling; |
147 glm::mat4 unscaled; |
148 glm::mat4 unscaled; |