src/geometry.h

changeset 371
171d3f9638a9
parent 369
57de8fab2237
child 372
b2914aaeec1a
--- 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<glm::vec3> 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<glm::vec3>& 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
 {

mercurial