diff --git a/glm/core/type_vec2.hpp b/glm/core/type_vec2.hpp index df45ac72..7688879e 100644 --- a/glm/core/type_vec2.hpp +++ b/glm/core/type_vec2.hpp @@ -159,19 +159,19 @@ namespace detail GLM_FUNC_DECL tvec2 & operator= (tvec2 const & v); template - GLM_FUNC_DECL tvec2 & operator+=(U const & s); + GLM_FUNC_DECL tvec2 & operator+=(U s); template GLM_FUNC_DECL tvec2 & operator+=(tvec2 const & v); template - GLM_FUNC_DECL tvec2 & operator-=(U const & s); + GLM_FUNC_DECL tvec2 & operator-=(U s); template GLM_FUNC_DECL tvec2 & operator-=(tvec2 const & v); template - GLM_FUNC_DECL tvec2 & operator*=(U const & s); + GLM_FUNC_DECL tvec2 & operator*=(U s); template GLM_FUNC_DECL tvec2 & operator*=(tvec2 const & v); template - GLM_FUNC_DECL tvec2 & operator/=(U const & s); + GLM_FUNC_DECL tvec2 & operator/=(U s); template GLM_FUNC_DECL tvec2 & operator/=(tvec2 const & v); @@ -187,27 +187,27 @@ namespace detail // Unary bit operators template - GLM_FUNC_DECL tvec2 & operator%= (U const & s); + GLM_FUNC_DECL tvec2 & operator%= (U s); template GLM_FUNC_DECL tvec2 & operator%= (tvec2 const & v); template - GLM_FUNC_DECL tvec2 & operator&= (U const & s); + GLM_FUNC_DECL tvec2 & operator&= (U s); template GLM_FUNC_DECL tvec2 & operator&= (tvec2 const & v); template - GLM_FUNC_DECL tvec2 & operator|= (U const & s); + GLM_FUNC_DECL tvec2 & operator|= (U s); template GLM_FUNC_DECL tvec2 & operator|= (tvec2 const & v); template - GLM_FUNC_DECL tvec2 & operator^= (U const & s); + GLM_FUNC_DECL tvec2 & operator^= (U s); template GLM_FUNC_DECL tvec2 & operator^= (tvec2 const & v); template - GLM_FUNC_DECL tvec2 & operator<<=(U const & s); + GLM_FUNC_DECL tvec2 & operator<<=(U s); template GLM_FUNC_DECL tvec2 & operator<<=(tvec2 const & v); template - GLM_FUNC_DECL tvec2 & operator>>=(U const & s); + GLM_FUNC_DECL tvec2 & operator>>=(U s); template GLM_FUNC_DECL tvec2 & operator>>=(tvec2 const & v); }; diff --git a/glm/core/type_vec2.inl b/glm/core/type_vec2.inl index 88e06d9a..057b2a82 100644 --- a/glm/core/type_vec2.inl +++ b/glm/core/type_vec2.inl @@ -184,7 +184,7 @@ namespace detail template GLM_FUNC_QUALIFIER tvec2 & tvec2::operator+= ( - U const & s + U s ) { this->x += static_cast(s); @@ -208,7 +208,7 @@ namespace detail template GLM_FUNC_QUALIFIER tvec2 & tvec2::operator-= ( - U const & s + U s ) { this->x -= static_cast(s); @@ -232,7 +232,7 @@ namespace detail template GLM_FUNC_QUALIFIER tvec2 & tvec2::operator*= ( - U const & s + U s ) { this->x *= static_cast(s); @@ -256,7 +256,7 @@ namespace detail template GLM_FUNC_QUALIFIER tvec2 & tvec2::operator/= ( - U const & s + U s ) { this->x /= static_cast(s); @@ -339,10 +339,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec2 & tvec2::operator%= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec2 & tvec2::operator%= (U s) { this->x %= static_cast(s); this->y %= static_cast(s); @@ -351,10 +348,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec2 & tvec2::operator%= - ( - tvec2 const & v - ) + GLM_FUNC_QUALIFIER tvec2 & tvec2::operator%= (tvec2 const & v) { this->x %= static_cast(v.x); this->y %= static_cast(v.y); @@ -363,10 +357,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec2 & tvec2::operator&= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec2 & tvec2::operator&= (U s) { this->x &= static_cast(s); this->y &= static_cast(s); @@ -375,10 +366,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec2 & tvec2::operator&= - ( - tvec2 const & v - ) + GLM_FUNC_QUALIFIER tvec2 & tvec2::operator&= (tvec2 const & v) { this->x &= static_cast(v.x); this->y &= static_cast(v.y); @@ -387,10 +375,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec2 & tvec2::operator|= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec2 & tvec2::operator|= (U s) { this->x |= static_cast(s); this->y |= static_cast(s); @@ -399,10 +384,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec2 & tvec2::operator|= - ( - tvec2 const & v - ) + GLM_FUNC_QUALIFIER tvec2 & tvec2::operator|= (tvec2 const & v) { this->x |= static_cast(v.x); this->y |= static_cast(v.y); @@ -411,10 +393,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec2 & tvec2::operator^= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec2 & tvec2::operator^= (U s) { this->x ^= static_cast(s); this->y ^= static_cast(s); @@ -423,10 +402,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec2 & tvec2::operator^= - ( - tvec2 const & v - ) + GLM_FUNC_QUALIFIER tvec2 & tvec2::operator^= (tvec2 const & v) { this->x ^= static_cast(v.x); this->y ^= static_cast(v.y); @@ -435,10 +411,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec2 & tvec2::operator<<= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec2 & tvec2::operator<<= (U s) { this->x <<= static_cast(s); this->y <<= static_cast(s); @@ -447,10 +420,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec2 & tvec2::operator<<= - ( - tvec2 const & v - ) + GLM_FUNC_QUALIFIER tvec2 & tvec2::operator<<= (tvec2 const & v) { this->x <<= static_cast(v.x); this->y <<= static_cast(v.y); @@ -459,10 +429,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec2 & tvec2::operator>>= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec2 & tvec2::operator>>= (U s) { this->x >>= static_cast(s); this->y >>= static_cast(s); @@ -471,10 +438,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec2 & tvec2::operator>>= - ( - tvec2 const & v - ) + GLM_FUNC_QUALIFIER tvec2 & tvec2::operator>>= (tvec2 const & v) { this->x >>= static_cast(v.x); this->y >>= static_cast(v.y); diff --git a/glm/core/type_vec3.hpp b/glm/core/type_vec3.hpp index 032662f6..a0494792 100644 --- a/glm/core/type_vec3.hpp +++ b/glm/core/type_vec3.hpp @@ -177,19 +177,19 @@ namespace detail GLM_FUNC_DECL tvec3 & operator= (tvec3 const & v); template - GLM_FUNC_DECL tvec3 & operator+=(U const & s); + GLM_FUNC_DECL tvec3 & operator+=(U s); template GLM_FUNC_DECL tvec3 & operator+=(tvec3 const & v); template - GLM_FUNC_DECL tvec3 & operator-=(U const & s); + GLM_FUNC_DECL tvec3 & operator-=(U s); template GLM_FUNC_DECL tvec3 & operator-=(tvec3 const & v); template - GLM_FUNC_DECL tvec3 & operator*=(U const & s); + GLM_FUNC_DECL tvec3 & operator*=(U s); template GLM_FUNC_DECL tvec3 & operator*=(tvec3 const & v); template - GLM_FUNC_DECL tvec3 & operator/=(U const & s); + GLM_FUNC_DECL tvec3 & operator/=(U s); template GLM_FUNC_DECL tvec3 & operator/=(tvec3 const & v); @@ -205,27 +205,27 @@ namespace detail // Unary bit operators template - GLM_FUNC_DECL tvec3 & operator%= (U const & s); + GLM_FUNC_DECL tvec3 & operator%= (U s); template GLM_FUNC_DECL tvec3 & operator%= (tvec3 const & v); template - GLM_FUNC_DECL tvec3 & operator&= (U const & s); + GLM_FUNC_DECL tvec3 & operator&= (U s); template GLM_FUNC_DECL tvec3 & operator&= (tvec3 const & v); template - GLM_FUNC_DECL tvec3 & operator|= (U const & s); + GLM_FUNC_DECL tvec3 & operator|= (U s); template GLM_FUNC_DECL tvec3 & operator|= (tvec3 const & v); template - GLM_FUNC_DECL tvec3 & operator^= (U const & s); + GLM_FUNC_DECL tvec3 & operator^= (U s); template GLM_FUNC_DECL tvec3 & operator^= (tvec3 const & v); template - GLM_FUNC_DECL tvec3 & operator<<=(U const & s); + GLM_FUNC_DECL tvec3 & operator<<=(U s); template GLM_FUNC_DECL tvec3 & operator<<=(tvec3 const & v); template - GLM_FUNC_DECL tvec3 & operator>>=(U const & s); + GLM_FUNC_DECL tvec3 & operator>>=(U s); template GLM_FUNC_DECL tvec3 & operator>>=(tvec3 const & v); }; diff --git a/glm/core/type_vec3.inl b/glm/core/type_vec3.inl index 36cc1e2b..7ba1dbea 100644 --- a/glm/core/type_vec3.inl +++ b/glm/core/type_vec3.inl @@ -183,10 +183,7 @@ namespace detail // Unary arithmetic operators template - GLM_FUNC_QUALIFIER tvec3& tvec3::operator= - ( - tvec3 const & v - ) + GLM_FUNC_QUALIFIER tvec3& tvec3::operator= (tvec3 const & v) { this->x = v.x; this->y = v.y; @@ -196,10 +193,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec3& tvec3::operator= - ( - tvec3 const & v - ) + GLM_FUNC_QUALIFIER tvec3& tvec3::operator= (tvec3 const & v) { this->x = static_cast(v.x); this->y = static_cast(v.y); @@ -209,10 +203,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec3 & tvec3::operator+= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec3 & tvec3::operator+= (U s) { this->x += static_cast(s); this->y += static_cast(s); @@ -222,10 +213,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec3 & tvec3::operator+= - ( - tvec3 const & v - ) + GLM_FUNC_QUALIFIER tvec3 & tvec3::operator+= (tvec3 const & v) { this->x += static_cast(v.x); this->y += static_cast(v.y); @@ -235,10 +223,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec3 & tvec3::operator-= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec3 & tvec3::operator-= (U s) { this->x -= static_cast(s); this->y -= static_cast(s); @@ -248,10 +233,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec3 & tvec3::operator-= - ( - tvec3 const & v - ) + GLM_FUNC_QUALIFIER tvec3 & tvec3::operator-= (tvec3 const & v) { this->x -= static_cast(v.x); this->y -= static_cast(v.y); @@ -261,10 +243,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec3 & tvec3::operator*= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec3 & tvec3::operator*= (U s) { this->x *= static_cast(s); this->y *= static_cast(s); @@ -274,10 +253,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec3 & tvec3::operator*= - ( - tvec3 const & v - ) + GLM_FUNC_QUALIFIER tvec3 & tvec3::operator*= (tvec3 const & v) { this->x *= static_cast(v.x); this->y *= static_cast(v.y); @@ -287,10 +263,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec3 & tvec3::operator/= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec3 & tvec3::operator/= (U s) { this->x /= static_cast(s); this->y /= static_cast(s); @@ -300,10 +273,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec3 & tvec3::operator/= - ( - tvec3 const & v - ) + GLM_FUNC_QUALIFIER tvec3 & tvec3::operator/= (tvec3 const & v) { this->x /= static_cast(v.x); this->y /= static_cast(v.y); @@ -376,10 +346,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec3 & tvec3::operator%= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec3 & tvec3::operator%= (U s) { this->x %= s; this->y %= s; @@ -389,10 +356,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec3 & tvec3::operator%= - ( - tvec3 const & v - ) + GLM_FUNC_QUALIFIER tvec3 & tvec3::operator%= (tvec3 const & v) { this->x %= v.x; this->y %= v.y; @@ -402,10 +366,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec3 & tvec3::operator&= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec3 & tvec3::operator&= (U s) { this->x &= s; this->y &= s; @@ -415,10 +376,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec3 & tvec3::operator&= - ( - tvec3 const & v - ) + GLM_FUNC_QUALIFIER tvec3 & tvec3::operator&= (tvec3 const & v) { this->x &= v.x; this->y &= v.y; @@ -428,10 +386,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec3 & tvec3::operator|= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec3 & tvec3::operator|= (U s) { this->x |= s; this->y |= s; @@ -441,10 +396,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec3 & tvec3::operator|= - ( - tvec3 const & v - ) + GLM_FUNC_QUALIFIER tvec3 & tvec3::operator|= (tvec3 const & v) { this->x |= v.x; this->y |= v.y; @@ -454,10 +406,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec3 & tvec3::operator^= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec3 & tvec3::operator^= (U s) { this->x ^= s; this->y ^= s; @@ -467,10 +416,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec3 & tvec3::operator^= - ( - tvec3 const & v - ) + GLM_FUNC_QUALIFIER tvec3 & tvec3::operator^= (tvec3 const & v) { this->x ^= v.x; this->y ^= v.y; @@ -480,10 +426,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec3 & tvec3::operator<<= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec3 & tvec3::operator<<= (U s) { this->x <<= s; this->y <<= s; @@ -493,10 +436,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec3 & tvec3::operator<<= - ( - tvec3 const & v - ) + GLM_FUNC_QUALIFIER tvec3 & tvec3::operator<<= (tvec3 const & v) { this->x <<= static_cast(v.x); this->y <<= static_cast(v.y); @@ -506,10 +446,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec3 & tvec3::operator>>= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec3 & tvec3::operator>>= (U s) { this->x >>= static_cast(s); this->y >>= static_cast(s); @@ -519,10 +456,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec3 & tvec3::operator>>= - ( - tvec3 const & v - ) + GLM_FUNC_QUALIFIER tvec3 & tvec3::operator>>= (tvec3 const & v) { this->x >>= static_cast(v.x); this->y >>= static_cast(v.y); diff --git a/glm/core/type_vec4.hpp b/glm/core/type_vec4.hpp index 61726819..daef7f7e 100644 --- a/glm/core/type_vec4.hpp +++ b/glm/core/type_vec4.hpp @@ -214,19 +214,19 @@ namespace detail GLM_FUNC_DECL tvec4 & operator= (tvec4 const & v); template - GLM_FUNC_DECL tvec4 & operator+=(U const & s); + GLM_FUNC_DECL tvec4 & operator+=(U s); template GLM_FUNC_DECL tvec4 & operator+=(tvec4 const & v); template - GLM_FUNC_DECL tvec4 & operator-=(U const & s); + GLM_FUNC_DECL tvec4 & operator-=(U s); template GLM_FUNC_DECL tvec4 & operator-=(tvec4 const & v); template - GLM_FUNC_DECL tvec4 & operator*=(U const & s); + GLM_FUNC_DECL tvec4 & operator*=(U s); template GLM_FUNC_DECL tvec4 & operator*=(tvec4 const & v); template - GLM_FUNC_DECL tvec4 & operator/=(U const & s); + GLM_FUNC_DECL tvec4 & operator/=(U s); template GLM_FUNC_DECL tvec4 & operator/=(tvec4 const & v); @@ -242,27 +242,27 @@ namespace detail // Unary bit operators template - GLM_FUNC_DECL tvec4 & operator%= (U const & s); + GLM_FUNC_DECL tvec4 & operator%= (U s); template GLM_FUNC_DECL tvec4 & operator%= (tvec4 const & v); template - GLM_FUNC_DECL tvec4 & operator&= (U const & s); + GLM_FUNC_DECL tvec4 & operator&= (U s); template GLM_FUNC_DECL tvec4 & operator&= (tvec4 const & v); template - GLM_FUNC_DECL tvec4 & operator|= (U const & s); + GLM_FUNC_DECL tvec4 & operator|= (U s); template GLM_FUNC_DECL tvec4 & operator|= (tvec4 const & v); template - GLM_FUNC_DECL tvec4 & operator^= (U const & s); + GLM_FUNC_DECL tvec4 & operator^= (U s); template GLM_FUNC_DECL tvec4 & operator^= (tvec4 const & v); template - GLM_FUNC_DECL tvec4 & operator<<=(U const & s); + GLM_FUNC_DECL tvec4 & operator<<=(U s); template GLM_FUNC_DECL tvec4 & operator<<=(tvec4 const & v); template - GLM_FUNC_DECL tvec4 & operator>>=(U const & s); + GLM_FUNC_DECL tvec4 & operator>>=(U s); template GLM_FUNC_DECL tvec4 & operator>>=(tvec4 const & v); }; @@ -279,7 +279,7 @@ namespace detail GLM_FUNC_DECL tvec4 operator+(tvec4 const & v1, tvec4 const & v2); template - GLM_FUNC_DECL tvec4 operator-(tvec4 const & v, T const & s); + GLM_FUNC_DECL tvec4 operator-(tvec4 const & v, T const & s); template GLM_FUNC_DECL tvec4 operator-(T const & s, tvec4 const & v); diff --git a/glm/core/type_vec4.inl b/glm/core/type_vec4.inl index c485c2f8..e1f339a4 100644 --- a/glm/core/type_vec4.inl +++ b/glm/core/type_vec4.inl @@ -142,9 +142,9 @@ namespace detail template template GLM_FUNC_QUALIFIER tvec4::tvec4 - ( - tvec4 const & v - ) : + ( + tvec4 const & v + ) : x(static_cast(v.x)), y(static_cast(v.y)), z(static_cast(v.z)), @@ -239,10 +239,7 @@ namespace detail // Unary arithmetic operators template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator= - ( - tvec4 const & v - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator= (tvec4 const & v) { this->x = v.x; this->y = v.y; @@ -253,10 +250,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator= - ( - tvec4 const & v - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator= (tvec4 const & v) { this->x = static_cast(v.x); this->y = static_cast(v.y); @@ -267,10 +261,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator+= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator+= (U s) { this->x += static_cast(s); this->y += static_cast(s); @@ -281,10 +272,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator+= - ( - tvec4 const & v - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator+= (tvec4 const & v) { this->x += static_cast(v.x); this->y += static_cast(v.y); @@ -295,10 +283,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator-= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator-= (U s) { this->x -= static_cast(s); this->y -= static_cast(s); @@ -309,10 +294,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator-= - ( - tvec4 const & v - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator-= (tvec4 const & v) { this->x -= static_cast(v.x); this->y -= static_cast(v.y); @@ -323,10 +305,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator*= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator*= (U s) { this->x *= static_cast(s); this->y *= static_cast(s); @@ -337,10 +316,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator*= - ( - tvec4 const & v - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator*= (tvec4 const & v) { this->x *= static_cast(v.x); this->y *= static_cast(v.y); @@ -351,10 +327,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator/= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator/= (U s) { this->x /= static_cast(s); this->y /= static_cast(s); @@ -365,10 +338,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator/= - ( - tvec4 const & v - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator/= (tvec4 const & v) { this->x /= static_cast(v.x); this->y /= static_cast(v.y); @@ -421,10 +391,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator%= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator%= (U s) { this->x %= static_cast(s); this->y %= static_cast(s); @@ -435,10 +402,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator%= - ( - tvec4 const & v - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator%= (tvec4 const & v) { this->x %= static_cast(v.x); this->y %= static_cast(v.y); @@ -449,10 +413,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator&= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator&= (U s) { this->x &= static_cast(s); this->y &= static_cast(s); @@ -463,10 +424,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator&= - ( - tvec4 const & v - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator&= (tvec4 const & v) { this->x &= static_cast(v.x); this->y &= static_cast(v.y); @@ -477,10 +435,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator|= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator|= (U s) { this->x |= static_cast(s); this->y |= static_cast(s); @@ -491,10 +446,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator|= - ( - tvec4 const & v - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator|= (tvec4 const & v) { this->x |= static_cast(v.x); this->y |= static_cast(v.y); @@ -505,10 +457,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator^= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator^= (U s) { this->x ^= static_cast(s); this->y ^= static_cast(s); @@ -519,10 +468,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator^= - ( - tvec4 const & v - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator^= (tvec4 const & v) { this->x ^= static_cast(v.x); this->y ^= static_cast(v.y); @@ -533,10 +479,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator<<= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator<<= (U s) { this->x <<= static_cast(s); this->y <<= static_cast(s); @@ -547,10 +490,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator<<= - ( - tvec4 const & v - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator<<= (tvec4 const & v) { this->x <<= static_cast(v.x); this->y <<= static_cast(v.y); @@ -561,10 +501,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator>>= - ( - U const & s - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator>>= (U s) { this->x >>= static_cast(s); this->y >>= static_cast(s); @@ -575,10 +512,7 @@ namespace detail template template - GLM_FUNC_QUALIFIER tvec4 & tvec4::operator>>= - ( - tvec4 const & v - ) + GLM_FUNC_QUALIFIER tvec4 & tvec4::operator>>= (tvec4 const & v) { this->x >>= static_cast(v.x); this->y >>= static_cast(v.y); diff --git a/test/core/core_type_vec2.cpp b/test/core/core_type_vec2.cpp index 07ac3448..103b0505 100644 --- a/test/core/core_type_vec2.cpp +++ b/test/core/core_type_vec2.cpp @@ -153,6 +153,12 @@ int test_vec2_operators() B /= 2.0f; Error += B == glm::vec2(2, 1.25) ? 0 : 1; } + { + glm::vec2 B(2.0f); + + B /= B.y; + Error += B == glm::vec2(1.0f) ? 0 : 1; + } { glm::vec2 A(1.0f, 2.0f); diff --git a/test/core/core_type_vec3.cpp b/test/core/core_type_vec3.cpp index ccf537da..36ea1d05 100644 --- a/test/core/core_type_vec3.cpp +++ b/test/core/core_type_vec3.cpp @@ -135,6 +135,12 @@ int test_vec3_operators() B /= 2.0f; Error += B == glm::vec3(2, 1.25, 1) ? 0 : 1; } + { + glm::vec3 B(2.0f); + + B /= B.y; + Error += B == glm::vec3(1.0f) ? 0 : 1; + } { glm::vec3 A(1.0f, 2.0f, 3.0f); diff --git a/test/core/core_type_vec4.cpp b/test/core/core_type_vec4.cpp index 1080685d..f22d03c0 100644 --- a/test/core/core_type_vec4.cpp +++ b/test/core/core_type_vec4.cpp @@ -158,6 +158,12 @@ int test_vec4_operators() B /= 2.0f; Error += B == glm::vec4(2, 1.25, 1, 7.0f / 4.0f / 2.0f) ? 0 : 1; } + { + glm::vec4 B(2.0f); + + B /= B.y; + Error += B == glm::vec4(1.0f) ? 0 : 1; + } { glm::vec4 A(1.0f, 2.0f, 3.0f, 4.0f);