diff -r f7dd937667a5 -r f99d52b1646b src/geometry.h --- a/src/geometry.h Fri Feb 28 19:24:33 2020 +0200 +++ b/src/geometry.h Sat Feb 29 23:43:38 2020 +0200 @@ -30,5 +30,12 @@ Line lineFromPoints(const glm::vec3& point_1, const glm::vec3 point_2); Plane planeFromTriangle(const Triangle& triangle); glm::vec3 normalVector(const Triangle& triangle); - std::optional linePlaneIntersection(const Line& line, const Plane& plane, const float epsilon = 1e-6); + std::optional linePlaneIntersection(const Line& line, const Plane& plane, const float epsilon = 1e-6f); + glm::vec3 scalingVector(const glm::mat4 matrix); + struct ScalingExtract + { + glm::vec3 scaling; + glm::mat4 unscaled; + }; + ScalingExtract extractScaling(const glm::mat4& matrix); }