diff --git a/glm/core/type_mat2x2.hpp b/glm/core/type_mat2x2.hpp index 2ed889ee..e425adcd 100644 --- a/glm/core/type_mat2x2.hpp +++ b/glm/core/type_mat2x2.hpp @@ -160,13 +160,13 @@ namespace glm tmat2x2 const & m); template - typename tmat2x2::row_type operator* ( + typename tmat2x2::col_type operator* ( tmat2x2 const & m, - typename tmat2x2::col_type const & s); + typename tmat2x2::row_type const & v); template - typename tmat2x2::col_type operator* ( - typename tmat2x2::row_type, + typename tmat2x2::row_type operator* ( + typename tmat2x2::col_type const & v, tmat2x2 const & m); template @@ -185,13 +185,13 @@ namespace glm tmat2x2 const & m); template - typename tmat2x2::row_type operator/ ( + typename tmat2x2::col_type operator/ ( tmat2x2 const & m, - typename tmat2x2::col_type const & v); + typename tmat2x2::row_type const & v); template - typename tmat2x2::col_type operator/ ( - typename tmat2x2::row_type & v, + typename tmat2x2::row_type operator/ ( + typename tmat2x2::col_type const & v, tmat2x2 const & m); template diff --git a/glm/core/type_mat2x3.hpp b/glm/core/type_mat2x3.hpp index 6a607a0d..f24a3016 100644 --- a/glm/core/type_mat2x3.hpp +++ b/glm/core/type_mat2x3.hpp @@ -35,7 +35,7 @@ namespace glm template struct tmat4x3; template struct tmat4x4; - //!< \brief Template for 2 * 3 matrix of floating-point numbers. + //!< \brief Template for 2 columns and 3 rows matrix of floating-point numbers. template struct tmat2x3 { @@ -142,13 +142,13 @@ namespace glm tmat2x3 const & m); template - typename tmat2x3::row_type operator* ( + typename tmat2x3::col_type operator* ( tmat2x3 const & m, - typename tmat2x3::col_type const & v); + typename tmat2x3::row_type const & v); template - typename tmat2x3::col_type operator* ( - typename tmat2x3::row_type const & v, + typename tmat2x3::row_type operator* ( + typename tmat2x3::col_type const & v, tmat2x3 const & m); template diff --git a/glm/core/type_mat2x4.hpp b/glm/core/type_mat2x4.hpp index 8e09c42b..be4487a2 100644 --- a/glm/core/type_mat2x4.hpp +++ b/glm/core/type_mat2x4.hpp @@ -35,7 +35,7 @@ namespace glm template struct tmat4x3; template struct tmat4x4; - //!< \brief Template for 2 * 4 matrix of floating-point numbers. + //!< \brief Template for 2 columns and 4 rows matrix of floating-point numbers. template struct tmat2x4 { @@ -142,13 +142,13 @@ namespace glm tmat2x4 const & m); template - typename tmat2x4::row_type operator* ( + typename tmat2x4::col_type operator* ( tmat2x4 const & m, - typename tmat2x4::col_type const & v); + typename tmat2x4::row_type const & v); template - typename tmat2x4::col_type operator* ( - typename tmat2x4::row_type const & v, + typename tmat2x4::row_type operator* ( + typename tmat2x4::col_type const & v, tmat2x4 const & m); template diff --git a/glm/core/type_mat2x4.inl b/glm/core/type_mat2x4.inl index 62ddd091..0f1bc4b8 100644 --- a/glm/core/type_mat2x4.inl +++ b/glm/core/type_mat2x4.inl @@ -400,6 +400,12 @@ namespace detail m[1] * s); } + // X + // X + // X X + // X X + // X X + // X X template inline typename tmat2x4::col_type operator* ( @@ -414,7 +420,12 @@ namespace detail m[0][3] * v.x + m[1][3] * v.y); } - template + // X X + // X X + // X X + // X X + // X X X X + template inline typename tmat2x4::row_type operator* ( typename tmat2x4::col_type const & v, diff --git a/glm/core/type_mat3x2.hpp b/glm/core/type_mat3x2.hpp index e0684c8f..96f718cb 100644 --- a/glm/core/type_mat3x2.hpp +++ b/glm/core/type_mat3x2.hpp @@ -35,7 +35,7 @@ namespace glm template struct tmat4x3; template struct tmat4x4; - //!< \brief Template for 3 * 2 matrix of floating-point numbers. + //!< \brief Template for 3 columns and 2 rows matrix of floating-point numbers. template struct tmat3x2 { @@ -144,13 +144,13 @@ namespace glm tmat3x2 const & m); template - typename tmat3x2::row_type operator* ( + typename tmat3x2::col_type operator* ( tmat3x2 const & m, - typename tmat3x2::col_type const & v); + typename tmat3x2::row_type const & v); template - typename tmat3x2::col_type operator* ( - typename tmat3x2::row_type const & v, + typename tmat3x2::row_type operator* ( + typename tmat3x2::col_type const & v, tmat3x2 const & m); template diff --git a/glm/core/type_mat3x3.hpp b/glm/core/type_mat3x3.hpp index d44f523f..5b639fbe 100644 --- a/glm/core/type_mat3x3.hpp +++ b/glm/core/type_mat3x3.hpp @@ -159,13 +159,13 @@ namespace glm tmat3x3 const & m); template - typename tmat3x3::row_type operator* ( + typename tmat3x3::col_type operator* ( tmat3x3 const & m, - typename tmat3x3::col_type const & v); + typename tmat3x3::row_type const & v); template - typename tmat3x3::col_type operator* ( - typename tmat3x3::row_type const & v, + typename tmat3x3::row_type operator* ( + typename tmat3x3::col_type const & v, tmat3x3 const & m); template @@ -184,13 +184,13 @@ namespace glm tmat3x3 const & m); template - typename tmat3x3::row_type operator/ ( + typename tmat3x3::col_type operator/ ( tmat3x3 const & m, - typename tmat3x3::col_type const & v); + typename tmat3x3::row_type const & v); template - typename tmat3x3::col_type operator/ ( - typename tmat3x3::row_type const & v, + typename tmat3x3::row_type operator/ ( + typename tmat3x3::col_type const & v, tmat3x3 const & m); template diff --git a/glm/core/type_mat3x4.hpp b/glm/core/type_mat3x4.hpp index de325841..c2cc5026 100644 --- a/glm/core/type_mat3x4.hpp +++ b/glm/core/type_mat3x4.hpp @@ -35,7 +35,7 @@ namespace glm template struct tmat4x3; template struct tmat4x4; - //!< \brief Template for 3 * 4 matrix of floating-point numbers. + //!< \brief Template for 3 columns and 4 rows matrix of floating-point numbers. template struct tmat3x4 { @@ -144,13 +144,13 @@ namespace glm tmat3x4 const & m); template - typename tmat3x4::row_type operator* ( + typename tmat3x4::col_type operator* ( tmat3x4 const & m, - typename tmat3x4::col_type const & v); + typename tmat3x4::row_type const & v); template - typename tmat3x4::col_type operator* ( - typename tmat3x4::row_type const & v, + typename tmat3x4::row_type operator* ( + typename tmat3x4::col_type const & v, tmat3x4 const & m); template diff --git a/glm/core/type_mat4x2.hpp b/glm/core/type_mat4x2.hpp index 3c7f2a15..d2b1980d 100644 --- a/glm/core/type_mat4x2.hpp +++ b/glm/core/type_mat4x2.hpp @@ -146,13 +146,13 @@ namespace glm tmat4x2 const & m); template - typename tmat4x2::row_type operator* ( + typename tmat4x2::col_type operator* ( tmat4x2 const & m, - typename tmat4x2::col_type const & v); + typename tmat4x2::row_type const & v); template - typename tmat4x2::col_type operator* ( - typename tmat4x2::row_type const & v, + typename tmat4x2::row_type operator* ( + typename tmat4x2::col_type const & v, tmat4x2 const & m); template diff --git a/glm/core/type_mat4x3.hpp b/glm/core/type_mat4x3.hpp index 3b187e9c..8c738a55 100644 --- a/glm/core/type_mat4x3.hpp +++ b/glm/core/type_mat4x3.hpp @@ -35,7 +35,7 @@ namespace glm template struct tmat4x3; template struct tmat4x4; - //!< \brief Template for 4 * 3 matrix of floating-point numbers. + //!< \brief Template for 4 columns and 3 rows matrix of floating-point numbers. template struct tmat4x3 { @@ -146,13 +146,13 @@ namespace glm tmat4x3 const & m); template - typename tmat4x3::row_type operator* ( + typename tmat4x3::col_type operator* ( tmat4x3 const & m, - typename tmat4x3::col_type const & v); + typename tmat4x3::row_type const & v); template - typename tmat4x3::col_type operator* ( - typename tmat4x3::row_type const & v, + typename tmat4x3::row_type operator* ( + typename tmat4x3::col_type const & v, tmat4x3 const & m); template diff --git a/glm/core/type_mat4x4.hpp b/glm/core/type_mat4x4.hpp index 17652025..eda5cd87 100644 --- a/glm/core/type_mat4x4.hpp +++ b/glm/core/type_mat4x4.hpp @@ -161,13 +161,13 @@ namespace glm tmat4x4 const & m); template - typename tmat4x4::row_type operator* ( + typename tmat4x4::col_type operator* ( tmat4x4 const & m, - typename tmat4x4::col_type const & v); + typename tmat4x4::row_type const & v); template - typename tmat4x4::col_type operator* ( - typename tmat4x4::row_type const & v, + typename tmat4x4::row_type operator* ( + typename tmat4x4::col_type const & v, tmat4x4 const & m); template @@ -186,13 +186,13 @@ namespace glm tmat4x4 const & m); template - typename tmat4x4::row_type operator/ ( + typename tmat4x4::col_type operator/ ( tmat4x4 const & m, - typename tmat4x4::col_type const & v); + typename tmat4x4::row_type const & v); template - typename tmat4x4::col_type operator/ ( - typename tmat4x4::row_type & v, + typename tmat4x4::row_type operator/ ( + typename tmat4x4::col_type & v, tmat4x4 const & m); template