diff --git a/glm/detail/type_mat2x2.hpp b/glm/detail/type_mat2x2.hpp index c299da18..35d6a408 100644 --- a/glm/detail/type_mat2x2.hpp +++ b/glm/detail/type_mat2x2.hpp @@ -50,10 +50,13 @@ namespace detail GLM_FUNC_DECL GLM_CONSTEXPR length_t length() const; - friend tmat2x2 inverse(tmat2x2 const & m); - friend col_type operator/(tmat2x2 const & m, row_type const & v); - friend row_type operator/(row_type const & v, tmat2x2 const & m); - + template + friend tmat2x2 inverse(tmat2x2 const & m); + template + friend tvec2 operator/(tmat2x2 const & m, tvec2 const & v); + template + friend tvec2 operator/(tvec2 const & v, tmat2x2 const & m); + private: /// @cond DETAIL col_type value[2]; diff --git a/glm/detail/type_mat3x3.hpp b/glm/detail/type_mat3x3.hpp index 0000b1e6..2d2c8243 100644 --- a/glm/detail/type_mat3x3.hpp +++ b/glm/detail/type_mat3x3.hpp @@ -50,10 +50,13 @@ namespace detail GLM_FUNC_DECL GLM_CONSTEXPR length_t length() const; - friend tmat3x3 inverse(tmat3x3 const & m); - friend col_type operator/(tmat3x3 const & m, row_type const & v); - friend row_type operator/(row_type const & v, tmat3x3 const & m); - + template + friend tmat3x3 inverse(tmat3x3 const & m); + template + friend tvec3 operator/(tmat3x3 const & m, tvec3 const & v); + template + friend tvec3 operator/(tvec3 const & v, tmat3x3 const & m); + private: /// @cond DETAIL col_type value[3]; diff --git a/glm/detail/type_mat4x4.hpp b/glm/detail/type_mat4x4.hpp index 59a5e4eb..f91ef083 100644 --- a/glm/detail/type_mat4x4.hpp +++ b/glm/detail/type_mat4x4.hpp @@ -54,10 +54,13 @@ namespace detail GLM_FUNC_DECL GLM_CONSTEXPR length_t length() const; - friend tmat4x4 inverse(tmat4x4 const & m); - friend col_type operator/(tmat4x4 const & m, row_type const & v); - friend row_type operator/(row_type const & v, tmat4x4 const & m); - + template + friend tmat4x4 inverse(tmat4x4 const & m); + template + friend tvec4 operator/(tmat4x4 const & m, tvec4 const & v); + template + friend tvec4 operator/(tvec4 const & v, tmat4x4 const & m); + private: /// @cond DETAIL col_type value[4];