diff -r b2f9ded235a6 -r 171d3f9638a9 src/geometry.h --- a/src/geometry.h Mon Apr 10 14:18:11 2023 +0300 +++ b/src/geometry.h Mon Apr 10 14:21:17 2023 +0300 @@ -133,7 +133,7 @@ std::optional linePlaneIntersection( const Line<3>& line, const Plane& plane, const float epsilon = 1e-6f); -glm::vec3 scalingVector(const glm::mat4 matrix); +glm::vec3 calculate_matrix_scaling(const glm::mat4 matrix); LineSegment2D top(const QRectF& rectangle); LineSegment2D bottom(const QRectF& rectangle); LineSegment2D left(const QRectF& rectangle); @@ -142,12 +142,12 @@ convexity_e quadrilateral_convexity(const Quadrilateral& quad); convexity_e polygon_convexity(const std::vector& polygon); Winding winding(const QPolygonF& polygon); -struct ScalingExtract +struct unscaled_matrix { glm::vec3 scaling; glm::mat4 unscaled; }; -ScalingExtract extractScaling(const glm::mat4& matrix); +unscaled_matrix unscale_matrix(const glm::mat4& matrix); struct NPolygon {