diff --git a/glm/detail/type_mat2x2.hpp b/glm/detail/type_mat2x2.hpp index 130bc7e6..c0a99e35 100644 --- a/glm/detail/type_mat2x2.hpp +++ b/glm/detail/type_mat2x2.hpp @@ -61,7 +61,7 @@ namespace glm GLM_FUNC_DECL tmat2x2(tmat2x2 const & m); GLM_FUNC_DECL explicit tmat2x2(ctor); - GLM_FUNC_DECL explicit tmat2x2(T const & x); + GLM_FUNC_DECL explicit tmat2x2(T scalar); GLM_FUNC_DECL tmat2x2( T const & x1, T const & y1, T const & x2, T const & y2); @@ -145,28 +145,28 @@ namespace glm // -- Binary operators -- template - GLM_FUNC_DECL tmat2x2 operator+(tmat2x2 const & m, T const & s); + GLM_FUNC_DECL tmat2x2 operator+(tmat2x2 const & m, T scalar); template - GLM_FUNC_DECL tmat2x2 operator+(T const & s, tmat2x2 const & m); + GLM_FUNC_DECL tmat2x2 operator+(T scalar, tmat2x2 const & m); template - GLM_FUNC_DECL tmat2x2 operator+(tmat2x2 const & m1, tmat2x2 const & m2); + GLM_FUNC_DECL tmat2x2 operator+(tmat2x2 const & m1, tmat2x2 const & m2); template - GLM_FUNC_DECL tmat2x2 operator-(tmat2x2 const & m, T const & s); + GLM_FUNC_DECL tmat2x2 operator-(tmat2x2 const & m, T scalar); template - GLM_FUNC_DECL tmat2x2 operator-(T const & s, tmat2x2 const & m); + GLM_FUNC_DECL tmat2x2 operator-(T scalar, tmat2x2 const & m); template - GLM_FUNC_DECL tmat2x2 operator-(tmat2x2 const & m1, tmat2x2 const & m2); + GLM_FUNC_DECL tmat2x2 operator-(tmat2x2 const & m1, tmat2x2 const & m2); template - GLM_FUNC_DECL tmat2x2 operator*(tmat2x2 const & m, T const & s); + GLM_FUNC_DECL tmat2x2 operator*(tmat2x2 const & m, T scalar); template - GLM_FUNC_DECL tmat2x2 operator*(T const & s, tmat2x2 const & m); + GLM_FUNC_DECL tmat2x2 operator*(T scalar, tmat2x2 const & m); template GLM_FUNC_DECL typename tmat2x2::col_type operator*(tmat2x2 const & m, typename tmat2x2::row_type const & v); @@ -175,7 +175,7 @@ namespace glm GLM_FUNC_DECL typename tmat2x2::row_type operator*(typename tmat2x2::col_type const & v, tmat2x2 const & m); template - GLM_FUNC_DECL tmat2x2 operator*(tmat2x2 const & m1, tmat2x2 const & m2); + GLM_FUNC_DECL tmat2x2 operator*(tmat2x2 const & m1, tmat2x2 const & m2); template GLM_FUNC_DECL tmat3x2 operator*(tmat2x2 const & m1, tmat3x2 const & m2); @@ -184,10 +184,10 @@ namespace glm GLM_FUNC_DECL tmat4x2 operator*(tmat2x2 const & m1, tmat4x2 const & m2); template - GLM_FUNC_DECL tmat2x2 operator/(tmat2x2 const & m, T const & s); + GLM_FUNC_DECL tmat2x2 operator/(tmat2x2 const & m, T scalar); template - GLM_FUNC_DECL tmat2x2 operator/(T const & s, tmat2x2 const & m); + GLM_FUNC_DECL tmat2x2 operator/(T scalar, tmat2x2 const & m); template GLM_FUNC_DECL typename tmat2x2::col_type operator/(tmat2x2 const & m, typename tmat2x2::row_type const & v); diff --git a/glm/detail/type_mat2x2.inl b/glm/detail/type_mat2x2.inl index 960fee57..db4758fa 100644 --- a/glm/detail/type_mat2x2.inl +++ b/glm/detail/type_mat2x2.inl @@ -85,10 +85,10 @@ namespace detail {} template - GLM_FUNC_QUALIFIER tmat2x2::tmat2x2(T const & s) + GLM_FUNC_QUALIFIER tmat2x2::tmat2x2(T scalar) { - this->value[0] = col_type(s, 0); - this->value[1] = col_type(0, s); + this->value[0] = col_type(scalar, 0); + this->value[1] = col_type(0, scalar); } template @@ -264,10 +264,10 @@ namespace detail template template - GLM_FUNC_QUALIFIER tmat2x2& tmat2x2::operator+=(U s) + GLM_FUNC_QUALIFIER tmat2x2& tmat2x2::operator+=(U scalar) { - this->value[0] += s; - this->value[1] += s; + this->value[0] += scalar; + this->value[1] += scalar; return *this; } @@ -282,10 +282,10 @@ namespace detail template template - GLM_FUNC_QUALIFIER tmat2x2& tmat2x2::operator-=(U s) + GLM_FUNC_QUALIFIER tmat2x2& tmat2x2::operator-=(U scalar) { - this->value[0] -= s; - this->value[1] -= s; + this->value[0] -= scalar; + this->value[1] -= scalar; return *this; } @@ -300,10 +300,10 @@ namespace detail template template - GLM_FUNC_QUALIFIER tmat2x2& tmat2x2::operator*=(U s) + GLM_FUNC_QUALIFIER tmat2x2& tmat2x2::operator*=(U scalar) { - this->value[0] *= s; - this->value[1] *= s; + this->value[0] *= scalar; + this->value[1] *= scalar; return *this; } @@ -316,10 +316,10 @@ namespace detail template template - GLM_FUNC_QUALIFIER tmat2x2& tmat2x2::operator/=(U s) + GLM_FUNC_QUALIFIER tmat2x2& tmat2x2::operator/=(U scalar) { - this->value[0] /= s; - this->value[1] /= s; + this->value[0] /= scalar; + this->value[1] /= scalar; return *this; } @@ -383,19 +383,19 @@ namespace detail // -- Binary arithmetic operators -- template - GLM_FUNC_QUALIFIER tmat2x2 operator+(tmat2x2 const & m, T const & s) + GLM_FUNC_QUALIFIER tmat2x2 operator+(tmat2x2 const & m, T scalar) { return tmat2x2( - m[0] + s, - m[1] + s); + m[0] + scalar, + m[1] + scalar); } template - GLM_FUNC_QUALIFIER tmat2x2 operator+(T const & s, tmat2x2 const & m) + GLM_FUNC_QUALIFIER tmat2x2 operator+(T scalar, tmat2x2 const & m) { return tmat2x2( - m[0] + s, - m[1] + s); + m[0] + scalar, + m[1] + scalar); } template @@ -407,19 +407,19 @@ namespace detail } template - GLM_FUNC_QUALIFIER tmat2x2 operator-(tmat2x2 const & m, T const & s) + GLM_FUNC_QUALIFIER tmat2x2 operator-(tmat2x2 const & m, T scalar) { return tmat2x2( - m[0] - s, - m[1] - s); + m[0] - scalar, + m[1] - scalar); } template - GLM_FUNC_QUALIFIER tmat2x2 operator-(T const & s, tmat2x2 const & m) + GLM_FUNC_QUALIFIER tmat2x2 operator-(T scalar, tmat2x2 const & m) { return tmat2x2( - s - m[0], - s - m[1]); + scalar - m[0], + scalar - m[1]); } template @@ -431,19 +431,19 @@ namespace detail } template - GLM_FUNC_QUALIFIER tmat2x2 operator*(tmat2x2 const & m, T const & s) + GLM_FUNC_QUALIFIER tmat2x2 operator*(tmat2x2 const & m, T scalar) { return tmat2x2( - m[0] * s, - m[1] * s); + m[0] * scalar, + m[1] * scalar); } template - GLM_FUNC_QUALIFIER tmat2x2 operator*(T const & s, tmat2x2 const & m) + GLM_FUNC_QUALIFIER tmat2x2 operator*(T scalar, tmat2x2 const & m) { return tmat2x2( - m[0] * s, - m[1] * s); + m[0] * scalar, + m[1] * scalar); } template @@ -507,19 +507,19 @@ namespace detail } template - GLM_FUNC_QUALIFIER tmat2x2 operator/(tmat2x2 const & m, T const & s) + GLM_FUNC_QUALIFIER tmat2x2 operator/(tmat2x2 const & m, T scalar) { return tmat2x2( - m[0] / s, - m[1] / s); + m[0] / scalar, + m[1] / scalar); } template - GLM_FUNC_QUALIFIER tmat2x2 operator/(T const & s, tmat2x2 const & m) + GLM_FUNC_QUALIFIER tmat2x2 operator/(T scalar, tmat2x2 const & m) { return tmat2x2( - s / m[0], - s / m[1]); + scalar / m[0], + scalar / m[1]); } template diff --git a/glm/detail/type_vec1.hpp b/glm/detail/type_vec1.hpp index 40291ecb..c9708111 100644 --- a/glm/detail/type_vec1.hpp +++ b/glm/detail/type_vec1.hpp @@ -102,7 +102,7 @@ namespace glm // -- Explicit basic constructors -- GLM_FUNC_DECL explicit tvec1(ctor); - GLM_FUNC_DECL explicit tvec1(T const & scalar); + GLM_FUNC_DECL explicit tvec1(T scalar); // -- Conversion vector constructors -- @@ -137,19 +137,19 @@ namespace glm template GLM_FUNC_DECL tvec1 & operator=(tvec1 const & v); template - GLM_FUNC_DECL tvec1 & operator+=(U const & scalar); + GLM_FUNC_DECL tvec1 & operator+=(U scalar); template GLM_FUNC_DECL tvec1 & operator+=(tvec1 const & v); template - GLM_FUNC_DECL tvec1 & operator-=(U const & scalar); + GLM_FUNC_DECL tvec1 & operator-=(U scalar); template GLM_FUNC_DECL tvec1 & operator-=(tvec1 const & v); template - GLM_FUNC_DECL tvec1 & operator*=(U const & scalar); + GLM_FUNC_DECL tvec1 & operator*=(U scalar); template GLM_FUNC_DECL tvec1 & operator*=(tvec1 const & v); template - GLM_FUNC_DECL tvec1 & operator/=(U const & scalar); + GLM_FUNC_DECL tvec1 & operator/=(U scalar); template GLM_FUNC_DECL tvec1 & operator/=(tvec1 const & v); @@ -163,27 +163,27 @@ namespace glm // -- Unary bit operators -- template - GLM_FUNC_DECL tvec1 & operator%=(U const & scalar); + GLM_FUNC_DECL tvec1 & operator%=(U scalar); template GLM_FUNC_DECL tvec1 & operator%=(tvec1 const & v); template - GLM_FUNC_DECL tvec1 & operator&=(U const & scalar); + GLM_FUNC_DECL tvec1 & operator&=(U scalar); template GLM_FUNC_DECL tvec1 & operator&=(tvec1 const & v); template - GLM_FUNC_DECL tvec1 & operator|=(U const & scalar); + GLM_FUNC_DECL tvec1 & operator|=(U scalar); template GLM_FUNC_DECL tvec1 & operator|=(tvec1 const & v); template - GLM_FUNC_DECL tvec1 & operator^=(U const & scalar); + GLM_FUNC_DECL tvec1 & operator^=(U scalar); template GLM_FUNC_DECL tvec1 & operator^=(tvec1 const & v); template - GLM_FUNC_DECL tvec1 & operator<<=(U const & scalar); + GLM_FUNC_DECL tvec1 & operator<<=(U scalar); template GLM_FUNC_DECL tvec1 & operator<<=(tvec1 const & v); template - GLM_FUNC_DECL tvec1 & operator>>=(U const & scalar); + GLM_FUNC_DECL tvec1 & operator>>=(U scalar); template GLM_FUNC_DECL tvec1 & operator>>=(tvec1 const & v); }; @@ -199,91 +199,91 @@ namespace glm // -- Binary operators -- template - GLM_FUNC_DECL tvec1 operator+(tvec1 const & v, T const & scalar); + GLM_FUNC_DECL tvec1 operator+(tvec1 const & v, T scalar); template - GLM_FUNC_DECL tvec1 operator+(T const & scalar, tvec1 const & v); + GLM_FUNC_DECL tvec1 operator+(T scalar, tvec1 const & v); template GLM_FUNC_DECL tvec1 operator+(tvec1 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec1 operator-(tvec1 const & v, T const & scalar); + GLM_FUNC_DECL tvec1 operator-(tvec1 const & v, T scalar); template - GLM_FUNC_DECL tvec1 operator-(T const & scalar, tvec1 const & v); + GLM_FUNC_DECL tvec1 operator-(T scalar, tvec1 const & v); template GLM_FUNC_DECL tvec1 operator- (tvec1 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec1 operator*(tvec1 const & v, T const & scalar); + GLM_FUNC_DECL tvec1 operator*(tvec1 const & v, T scalar); template - GLM_FUNC_DECL tvec1 operator*(T const & scalar, tvec1 const & v); + GLM_FUNC_DECL tvec1 operator*(T scalar, tvec1 const & v); template GLM_FUNC_DECL tvec1 operator*(tvec1 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec1 operator/(tvec1 const & v, T const & scalar); + GLM_FUNC_DECL tvec1 operator/(tvec1 const & v, T scalar); template - GLM_FUNC_DECL tvec1 operator/(T const & scalar, tvec1 const & v); + GLM_FUNC_DECL tvec1 operator/(T scalar, tvec1 const & v); template GLM_FUNC_DECL tvec1 operator/(tvec1 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec1 operator%(tvec1 const & v, T const & scalar); + GLM_FUNC_DECL tvec1 operator%(tvec1 const & v, T scalar); template - GLM_FUNC_DECL tvec1 operator%(T const & scalar, tvec1 const & v); + GLM_FUNC_DECL tvec1 operator%(T scalar, tvec1 const & v); template GLM_FUNC_DECL tvec1 operator%(tvec1 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec1 operator&(tvec1 const & v, T const & scalar); + GLM_FUNC_DECL tvec1 operator&(tvec1 const & v, T scalar); template - GLM_FUNC_DECL tvec1 operator&(T const & scalar, tvec1 const & v); + GLM_FUNC_DECL tvec1 operator&(T scalar, tvec1 const & v); template GLM_FUNC_DECL tvec1 operator&(tvec1 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec1 operator|(tvec1 const & v, T const & scalar); + GLM_FUNC_DECL tvec1 operator|(tvec1 const & v, T scalar); template - GLM_FUNC_DECL tvec1 operator|(T const & scalar, tvec1 const & v); + GLM_FUNC_DECL tvec1 operator|(T scalar, tvec1 const & v); template GLM_FUNC_DECL tvec1 operator|(tvec1 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec1 operator^(tvec1 const & v, T const & scalar); + GLM_FUNC_DECL tvec1 operator^(tvec1 const & v, T scalar); template - GLM_FUNC_DECL tvec1 operator^(T const & scalar, tvec1 const & v); + GLM_FUNC_DECL tvec1 operator^(T scalar, tvec1 const & v); template GLM_FUNC_DECL tvec1 operator^(tvec1 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec1 operator<<(tvec1 const & v, T const & scalar); + GLM_FUNC_DECL tvec1 operator<<(tvec1 const & v, T scalar); template - GLM_FUNC_DECL tvec1 operator<<(T const & scalar, tvec1 const & v); + GLM_FUNC_DECL tvec1 operator<<(T scalar, tvec1 const & v); template GLM_FUNC_DECL tvec1 operator<<(tvec1 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec1 operator>>(tvec1 const & v, T const & scalar); + GLM_FUNC_DECL tvec1 operator>>(tvec1 const & v, T scalar); template - GLM_FUNC_DECL tvec1 operator>>(T const & scalar, tvec1 const & v); + GLM_FUNC_DECL tvec1 operator>>(T scalar, tvec1 const & v); template GLM_FUNC_DECL tvec1 operator>>(tvec1 const & v1, tvec1 const & v2); diff --git a/glm/detail/type_vec1.inl b/glm/detail/type_vec1.inl index d1bf7cf5..5b4fa422 100644 --- a/glm/detail/type_vec1.inl +++ b/glm/detail/type_vec1.inl @@ -63,7 +63,7 @@ namespace glm {} template - GLM_FUNC_QUALIFIER tvec1::tvec1(T const & scalar) + GLM_FUNC_QUALIFIER tvec1::tvec1(T scalar) : x(scalar) {} @@ -136,7 +136,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER tvec1 & tvec1::operator+=(U const & scalar) + GLM_FUNC_QUALIFIER tvec1 & tvec1::operator+=(U scalar) { this->x += static_cast(scalar); return *this; @@ -152,7 +152,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER tvec1 & tvec1::operator-=(U const & scalar) + GLM_FUNC_QUALIFIER tvec1 & tvec1::operator-=(U scalar) { this->x -= static_cast(scalar); return *this; @@ -168,7 +168,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER tvec1 & tvec1::operator*=(U const & scalar) + GLM_FUNC_QUALIFIER tvec1 & tvec1::operator*=(U scalar) { this->x *= static_cast(scalar); return *this; @@ -184,7 +184,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER tvec1 & tvec1::operator/=(U const & scalar) + GLM_FUNC_QUALIFIER tvec1 & tvec1::operator/=(U scalar) { this->x /= static_cast(scalar); return *this; @@ -234,7 +234,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER tvec1 & tvec1::operator%=(U const & scalar) + GLM_FUNC_QUALIFIER tvec1 & tvec1::operator%=(U scalar) { this->x %= static_cast(scalar); return *this; @@ -250,7 +250,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER tvec1 & tvec1::operator&=(U const & scalar) + GLM_FUNC_QUALIFIER tvec1 & tvec1::operator&=(U scalar) { this->x &= static_cast(scalar); return *this; @@ -266,7 +266,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER tvec1 & tvec1::operator|=(U const & scalar) + GLM_FUNC_QUALIFIER tvec1 & tvec1::operator|=(U scalar) { this->x |= static_cast(scalar); return *this; @@ -282,7 +282,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER tvec1 & tvec1::operator^=(U const & scalar) + GLM_FUNC_QUALIFIER tvec1 & tvec1::operator^=(U scalar) { this->x ^= static_cast(scalar); return *this; @@ -298,7 +298,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER tvec1 & tvec1::operator<<=(U const & scalar) + GLM_FUNC_QUALIFIER tvec1 & tvec1::operator<<=(U scalar) { this->x <<= static_cast(scalar); return *this; @@ -314,7 +314,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER tvec1 & tvec1::operator>>=(U const & scalar) + GLM_FUNC_QUALIFIER tvec1 & tvec1::operator>>=(U scalar) { this->x >>= static_cast(scalar); return *this; @@ -346,14 +346,14 @@ namespace glm // -- Binary arithmetic operators -- template - GLM_FUNC_QUALIFIER tvec1 operator+(tvec1 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec1 operator+(tvec1 const & v, T scalar) { return tvec1( v.x + scalar); } template - GLM_FUNC_QUALIFIER tvec1 operator+(T const & scalar, tvec1 const & v) + GLM_FUNC_QUALIFIER tvec1 operator+(T scalar, tvec1 const & v) { return tvec1( scalar + v.x); @@ -368,14 +368,14 @@ namespace glm //operator- template - GLM_FUNC_QUALIFIER tvec1 operator-(tvec1 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec1 operator-(tvec1 const & v, T scalar) { return tvec1( v.x - scalar); } template - GLM_FUNC_QUALIFIER tvec1 operator-(T const & scalar, tvec1 const & v) + GLM_FUNC_QUALIFIER tvec1 operator-(T scalar, tvec1 const & v) { return tvec1( scalar - v.x); @@ -389,14 +389,14 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec1 operator*(tvec1 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec1 operator*(tvec1 const & v, T scalar) { return tvec1( v.x * scalar); } template - GLM_FUNC_QUALIFIER tvec1 operator*(T const & scalar, tvec1 const & v) + GLM_FUNC_QUALIFIER tvec1 operator*(T scalar, tvec1 const & v) { return tvec1( scalar * v.x); @@ -410,14 +410,14 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec1 operator/(tvec1 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec1 operator/(tvec1 const & v, T scalar) { return tvec1( v.x / scalar); } template - GLM_FUNC_QUALIFIER tvec1 operator/(T const & scalar, tvec1 const & v) + GLM_FUNC_QUALIFIER tvec1 operator/(T scalar, tvec1 const & v) { return tvec1( scalar / v.x); @@ -433,14 +433,14 @@ namespace glm // -- Binary bit operators -- template - GLM_FUNC_QUALIFIER tvec1 operator%(tvec1 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec1 operator%(tvec1 const & v, T scalar) { return tvec1( v.x % scalar); } template - GLM_FUNC_QUALIFIER tvec1 operator%(T const & scalar, tvec1 const & v) + GLM_FUNC_QUALIFIER tvec1 operator%(T scalar, tvec1 const & v) { return tvec1( scalar % v.x); @@ -454,14 +454,14 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec1 operator&(tvec1 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec1 operator&(tvec1 const & v, T scalar) { return tvec1( v.x & scalar); } template - GLM_FUNC_QUALIFIER tvec1 operator&(T const & scalar, tvec1 const & v) + GLM_FUNC_QUALIFIER tvec1 operator&(T scalar, tvec1 const & v) { return tvec1( scalar & v.x); @@ -475,14 +475,14 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec1 operator|(tvec1 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec1 operator|(tvec1 const & v, T scalar) { return tvec1( v.x | scalar); } template - GLM_FUNC_QUALIFIER tvec1 operator|(T const & scalar, tvec1 const & v) + GLM_FUNC_QUALIFIER tvec1 operator|(T scalar, tvec1 const & v) { return tvec1( scalar | v.x); @@ -496,14 +496,14 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec1 operator^(tvec1 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec1 operator^(tvec1 const & v, T scalar) { return tvec1( v.x ^ scalar); } template - GLM_FUNC_QUALIFIER tvec1 operator^(T const & scalar, tvec1 const & v) + GLM_FUNC_QUALIFIER tvec1 operator^(T scalar, tvec1 const & v) { return tvec1( scalar ^ v.x); @@ -517,14 +517,14 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec1 operator<<(tvec1 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec1 operator<<(tvec1 const & v, T scalar) { return tvec1( v.x << scalar); } template - GLM_FUNC_QUALIFIER tvec1 operator<<(T const & scalar, tvec1 const & v) + GLM_FUNC_QUALIFIER tvec1 operator<<(T scalar, tvec1 const & v) { return tvec1( scalar << v.x); @@ -538,14 +538,14 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec1 operator>>(tvec1 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec1 operator>>(tvec1 const & v, T scalar) { return tvec1( v.x >> scalar); } template - GLM_FUNC_QUALIFIER tvec1 operator>>(T const & scalar, tvec1 const & v) + GLM_FUNC_QUALIFIER tvec1 operator>>(T scalar, tvec1 const & v) { return tvec1( scalar >> v.x); diff --git a/glm/detail/type_vec2.hpp b/glm/detail/type_vec2.hpp index de425e10..4d9b8c70 100644 --- a/glm/detail/type_vec2.hpp +++ b/glm/detail/type_vec2.hpp @@ -102,14 +102,14 @@ namespace glm // -- Explicit basic constructors -- GLM_FUNC_DECL explicit tvec2(ctor); - GLM_FUNC_DECL explicit tvec2(T const & scalar); - GLM_FUNC_DECL tvec2(T const & s1, T const & s2); + GLM_FUNC_DECL explicit tvec2(T scalar); + GLM_FUNC_DECL tvec2(T s1, T s2); // -- Conversion constructors -- /// Explicit converions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) template - GLM_FUNC_DECL tvec2(A const & x, B const & y); + GLM_FUNC_DECL tvec2(A x, B y); template GLM_FUNC_DECL tvec2(tvec1 const & v1, tvec1 const & v2); @@ -225,13 +225,13 @@ namespace glm // -- Binary operators -- template - GLM_FUNC_DECL tvec2 operator+(tvec2 const & v, T const & scalar); + GLM_FUNC_DECL tvec2 operator+(tvec2 const & v, T scalar); template GLM_FUNC_DECL tvec2 operator+(tvec2 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec2 operator+(T const & scalar, tvec2 const & v); + GLM_FUNC_DECL tvec2 operator+(T scalar, tvec2 const & v); template GLM_FUNC_DECL tvec2 operator+(tvec1 const & v1, tvec2 const & v2); @@ -240,13 +240,13 @@ namespace glm GLM_FUNC_DECL tvec2 operator+(tvec2 const & v1, tvec2 const & v2); template - GLM_FUNC_DECL tvec2 operator-(tvec2 const & v, T const & scalar); + GLM_FUNC_DECL tvec2 operator-(tvec2 const & v, T scalar); template GLM_FUNC_DECL tvec2 operator-(tvec2 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec2 operator-(T const & scalar, tvec2 const & v); + GLM_FUNC_DECL tvec2 operator-(T scalar, tvec2 const & v); template GLM_FUNC_DECL tvec2 operator-(tvec1 const & v1, tvec2 const & v2); @@ -255,13 +255,13 @@ namespace glm GLM_FUNC_DECL tvec2 operator-(tvec2 const & v1, tvec2 const & v2); template - GLM_FUNC_DECL tvec2 operator*(tvec2 const & v, T const & scalar); + GLM_FUNC_DECL tvec2 operator*(tvec2 const & v, T scalar); template GLM_FUNC_DECL tvec2 operator*(tvec2 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec2 operator*(T const & scalar, tvec2 const & v); + GLM_FUNC_DECL tvec2 operator*(T scalar, tvec2 const & v); template GLM_FUNC_DECL tvec2 operator*(tvec1 const & v1, tvec2 const & v2); @@ -270,13 +270,13 @@ namespace glm GLM_FUNC_DECL tvec2 operator*(tvec2 const & v1, tvec2 const & v2); template - GLM_FUNC_DECL tvec2 operator/(tvec2 const & v, T const & scalar); + GLM_FUNC_DECL tvec2 operator/(tvec2 const & v, T scalar); template GLM_FUNC_DECL tvec2 operator/(tvec2 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec2 operator/(T const & scalar, tvec2 const & v); + GLM_FUNC_DECL tvec2 operator/(T scalar, tvec2 const & v); template GLM_FUNC_DECL tvec2 operator/(tvec1 const & v1, tvec2 const & v2); @@ -285,13 +285,13 @@ namespace glm GLM_FUNC_DECL tvec2 operator/(tvec2 const & v1, tvec2 const & v2); template - GLM_FUNC_DECL tvec2 operator%(tvec2 const & v, T const & scalar); + GLM_FUNC_DECL tvec2 operator%(tvec2 const & v, T scalar); template GLM_FUNC_DECL tvec2 operator%(tvec2 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec2 operator%(T const & scalar, tvec2 const & v); + GLM_FUNC_DECL tvec2 operator%(T scalar, tvec2 const & v); template GLM_FUNC_DECL tvec2 operator%(tvec1 const & v1, tvec2 const & v2); @@ -300,13 +300,13 @@ namespace glm GLM_FUNC_DECL tvec2 operator%(tvec2 const & v1, tvec2 const & v2); template - GLM_FUNC_DECL tvec2 operator&(tvec2 const & v, T const & scalar); + GLM_FUNC_DECL tvec2 operator&(tvec2 const & v, T scalar); template GLM_FUNC_DECL tvec2 operator&(tvec2 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec2 operator&(T const & scalar, tvec2 const & v); + GLM_FUNC_DECL tvec2 operator&(T scalar, tvec2 const & v); template GLM_FUNC_DECL tvec2 operator&(tvec1 const & v1, tvec2 const & v2); @@ -315,13 +315,13 @@ namespace glm GLM_FUNC_DECL tvec2 operator&(tvec2 const & v1, tvec2 const & v2); template - GLM_FUNC_DECL tvec2 operator|(tvec2 const & v, T const & scalar); + GLM_FUNC_DECL tvec2 operator|(tvec2 const & v, T scalar); template GLM_FUNC_DECL tvec2 operator|(tvec2 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec2 operator|(T const & scalar, tvec2 const & v); + GLM_FUNC_DECL tvec2 operator|(T scalar, tvec2 const & v); template GLM_FUNC_DECL tvec2 operator|(tvec1 const & v1, tvec2 const & v2); @@ -330,13 +330,13 @@ namespace glm GLM_FUNC_DECL tvec2 operator|(tvec2 const & v1, tvec2 const & v2); template - GLM_FUNC_DECL tvec2 operator^(tvec2 const & v, T const & scalar); + GLM_FUNC_DECL tvec2 operator^(tvec2 const & v, T scalar); template GLM_FUNC_DECL tvec2 operator^(tvec2 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec2 operator^(T const & scalar, tvec2 const & v); + GLM_FUNC_DECL tvec2 operator^(T scalar, tvec2 const & v); template GLM_FUNC_DECL tvec2 operator^(tvec1 const & v1, tvec2 const & v2); @@ -345,13 +345,13 @@ namespace glm GLM_FUNC_DECL tvec2 operator^(tvec2 const & v1, tvec2 const & v2); template - GLM_FUNC_DECL tvec2 operator<<(tvec2 const & v, T const & scalar); + GLM_FUNC_DECL tvec2 operator<<(tvec2 const & v, T scalar); template GLM_FUNC_DECL tvec2 operator<<(tvec2 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec2 operator<<(T const & scalar, tvec2 const & v); + GLM_FUNC_DECL tvec2 operator<<(T scalar, tvec2 const & v); template GLM_FUNC_DECL tvec2 operator<<(tvec1 const & v1, tvec2 const & v2); @@ -360,13 +360,13 @@ namespace glm GLM_FUNC_DECL tvec2 operator<<(tvec2 const & v1, tvec2 const & v2); template - GLM_FUNC_DECL tvec2 operator>>(tvec2 const & v, T const & scalar); + GLM_FUNC_DECL tvec2 operator>>(tvec2 const & v, T scalar); template GLM_FUNC_DECL tvec2 operator>>(tvec2 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec2 operator>>(T const & scalar, tvec2 const & v); + GLM_FUNC_DECL tvec2 operator>>(T scalar, tvec2 const & v); template GLM_FUNC_DECL tvec2 operator>>(tvec1 const & v1, tvec2 const & v2); diff --git a/glm/detail/type_vec2.inl b/glm/detail/type_vec2.inl index dfb3a33a..f23563f5 100644 --- a/glm/detail/type_vec2.inl +++ b/glm/detail/type_vec2.inl @@ -72,12 +72,12 @@ namespace glm {} template - GLM_FUNC_QUALIFIER tvec2::tvec2(T const & scalar) + GLM_FUNC_QUALIFIER tvec2::tvec2(T scalar) : x(scalar), y(scalar) {} template - GLM_FUNC_QUALIFIER tvec2::tvec2(T const & s1, T const & s2) + GLM_FUNC_QUALIFIER tvec2::tvec2(T s1, T s2) : x(s1), y(s2) {} @@ -85,7 +85,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER tvec2::tvec2(A const & a, B const & b) + GLM_FUNC_QUALIFIER tvec2::tvec2(A a, B b) : x(static_cast(a)) , y(static_cast(b)) {} @@ -510,7 +510,7 @@ namespace glm // -- Binary arithmetic operators -- template - GLM_FUNC_QUALIFIER tvec2 operator+(tvec2 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec2 operator+(tvec2 const & v, T scalar) { return tvec2( v.x + scalar, @@ -526,7 +526,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec2 operator+(T const & scalar, tvec2 const & v) + GLM_FUNC_QUALIFIER tvec2 operator+(T scalar, tvec2 const & v) { return tvec2( scalar + v.x, @@ -550,7 +550,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec2 operator-(tvec2 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec2 operator-(tvec2 const & v, T scalar) { return tvec2( v.x - scalar, @@ -566,7 +566,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec2 operator-(T const & scalar, tvec2 const & v) + GLM_FUNC_QUALIFIER tvec2 operator-(T scalar, tvec2 const & v) { return tvec2( scalar - v.x, @@ -590,11 +590,11 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec2 operator*(tvec2 const & v1, T const & v2) + GLM_FUNC_QUALIFIER tvec2 operator*(tvec2 const & v, T scalar) { return tvec2( - v1.x * v2, - v1.y * v2); + v.x * scalar, + v.y * scalar); } template @@ -606,7 +606,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec2 operator*(T const & scalar, tvec2 const & v) + GLM_FUNC_QUALIFIER tvec2 operator*(T scalar, tvec2 const & v) { return tvec2( scalar * v.x, @@ -630,7 +630,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec2 operator/(tvec2 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec2 operator/(tvec2 const & v, T scalar) { return tvec2( v.x / scalar, @@ -646,7 +646,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec2 operator/(T const & scalar, tvec2 const & v) + GLM_FUNC_QUALIFIER tvec2 operator/(T scalar, tvec2 const & v) { return tvec2( scalar / v.x, @@ -672,7 +672,7 @@ namespace glm // -- Binary bit operators -- template - GLM_FUNC_QUALIFIER tvec2 operator%(tvec2 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec2 operator%(tvec2 const & v, T scalar) { return tvec2( v.x % scalar, @@ -688,7 +688,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec2 operator%(T const & scalar, tvec2 const & v) + GLM_FUNC_QUALIFIER tvec2 operator%(T scalar, tvec2 const & v) { return tvec2( scalar % v.x, @@ -712,7 +712,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec2 operator&(tvec2 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec2 operator&(tvec2 const & v, T scalar) { return tvec2( v.x & scalar, @@ -728,7 +728,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec2 operator&(T const & scalar, tvec2 const & v) + GLM_FUNC_QUALIFIER tvec2 operator&(T scalar, tvec2 const & v) { return tvec2( scalar & v.x, @@ -752,7 +752,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec2 operator|(tvec2 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec2 operator|(tvec2 const & v, T scalar) { return tvec2( v.x | scalar, @@ -768,7 +768,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec2 operator|(T const & scalar, tvec2 const & v) + GLM_FUNC_QUALIFIER tvec2 operator|(T scalar, tvec2 const & v) { return tvec2( scalar | v.x, @@ -792,7 +792,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec2 operator^(tvec2 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec2 operator^(tvec2 const & v, T scalar) { return tvec2( v.x ^ scalar, @@ -808,7 +808,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec2 operator^(T const & scalar, tvec2 const & v) + GLM_FUNC_QUALIFIER tvec2 operator^(T scalar, tvec2 const & v) { return tvec2( scalar ^ v.x, @@ -832,7 +832,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec2 operator<<(tvec2 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec2 operator<<(tvec2 const & v, T scalar) { return tvec2( v.x << scalar, @@ -848,7 +848,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec2 operator<<(T const & scalar, tvec2 const & v) + GLM_FUNC_QUALIFIER tvec2 operator<<(T scalar, tvec2 const & v) { return tvec2( scalar << v.x, @@ -872,7 +872,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec2 operator>>(tvec2 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec2 operator>>(tvec2 const & v, T scalar) { return tvec2( v.x >> scalar, @@ -888,7 +888,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec2 operator>>(T const & scalar, tvec2 const & v) + GLM_FUNC_QUALIFIER tvec2 operator>>(T scalar, tvec2 const & v) { return tvec2( scalar >> v.x, diff --git a/glm/detail/type_vec3.hpp b/glm/detail/type_vec3.hpp index 70e4290b..8280a219 100644 --- a/glm/detail/type_vec3.hpp +++ b/glm/detail/type_vec3.hpp @@ -103,14 +103,14 @@ namespace glm // -- Explicit basic constructors -- GLM_FUNC_DECL explicit tvec3(ctor); - GLM_FUNC_DECL explicit tvec3(T const & scalar); - GLM_FUNC_DECL tvec3(T const & a, T const & b, T const & c); + GLM_FUNC_DECL explicit tvec3(T scalar); + GLM_FUNC_DECL tvec3(T a, T b, T c); // -- Conversion scalar constructors -- /// Explicit converions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) template - GLM_FUNC_DECL tvec3(A const & a, B const & b, C const & c); + GLM_FUNC_DECL tvec3(A a, B b, C c); template GLM_FUNC_DECL tvec3(tvec1 const & a, tvec1 const & b, tvec1 const & c); @@ -118,13 +118,13 @@ namespace glm /// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) template - GLM_FUNC_DECL tvec3(tvec2 const & a, B const & b); + GLM_FUNC_DECL tvec3(tvec2 const & a, B b); /// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) template GLM_FUNC_DECL tvec3(tvec2 const & a, tvec1 const & b); /// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) template - GLM_FUNC_DECL tvec3(A const & a, tvec2 const & b); + GLM_FUNC_DECL tvec3(A a, tvec2 const & b); /// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) template GLM_FUNC_DECL tvec3(tvec1 const & a, tvec2 const & b); @@ -247,151 +247,151 @@ namespace glm // -- Binary operators -- template - GLM_FUNC_DECL tvec3 operator+(tvec3 const & v, T const & scalar); + GLM_FUNC_DECL tvec3 operator+(tvec3 const & v, T scalar); template GLM_FUNC_DECL tvec3 operator+(tvec3 const & v, tvec1 const & scalar); template - GLM_FUNC_DECL tvec3 operator+(T const & scalar, tvec3 const & v); + GLM_FUNC_DECL tvec3 operator+(T scalar, tvec3 const & v); template - GLM_FUNC_DECL tvec3 operator+(tvec1 const & scalar, tvec3 const & v); + GLM_FUNC_DECL tvec3 operator+(tvec1 const & v1, tvec3 const & v2); template GLM_FUNC_DECL tvec3 operator+(tvec3 const & v1, tvec3 const & v2); template - GLM_FUNC_DECL tvec3 operator-(tvec3 const & v, T const & scalar); + GLM_FUNC_DECL tvec3 operator-(tvec3 const & v, T scalar); template - GLM_FUNC_DECL tvec3 operator-(tvec3 const & v, tvec1 const & scalar); + GLM_FUNC_DECL tvec3 operator-(tvec3 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec3 operator-(T const & scalar, tvec3 const & v); + GLM_FUNC_DECL tvec3 operator-(T scalar, tvec3 const & v); template - GLM_FUNC_DECL tvec3 operator-(tvec1 const & scalar, tvec3 const & v); + GLM_FUNC_DECL tvec3 operator-(tvec1 const & v1, tvec3 const & v2); template GLM_FUNC_DECL tvec3 operator-(tvec3 const & v1, tvec3 const & v2); template - GLM_FUNC_DECL tvec3 operator*(tvec3 const & v, T const & scalar); + GLM_FUNC_DECL tvec3 operator*(tvec3 const & v, T scalar); template - GLM_FUNC_DECL tvec3 operator*(tvec3 const & v, tvec1 const & scalar); + GLM_FUNC_DECL tvec3 operator*(tvec3 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec3 operator*(T const & scalar, tvec3 const & v); + GLM_FUNC_DECL tvec3 operator*(T scalar, tvec3 const & v); template - GLM_FUNC_DECL tvec3 operator*(tvec1 const & scalar, tvec3 const & v); + GLM_FUNC_DECL tvec3 operator*(tvec1 const & v1, tvec3 const & v2); template GLM_FUNC_DECL tvec3 operator*(tvec3 const & v1, tvec3 const & v2); template - GLM_FUNC_DECL tvec3 operator/(tvec3 const & v, T const & scalar); + GLM_FUNC_DECL tvec3 operator/(tvec3 const & v, T scalar); template - GLM_FUNC_DECL tvec3 operator/(tvec3 const & v, tvec1 const & scalar); + GLM_FUNC_DECL tvec3 operator/(tvec3 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec3 operator/(T const & scalar, tvec3 const & v); + GLM_FUNC_DECL tvec3 operator/(T scalar, tvec3 const & v); template - GLM_FUNC_DECL tvec3 operator/(tvec1 const & scalar, tvec3 const & v); + GLM_FUNC_DECL tvec3 operator/(tvec1 const & v1, tvec3 const & v2); template GLM_FUNC_DECL tvec3 operator/(tvec3 const & v1, tvec3 const & v2); template - GLM_FUNC_DECL tvec3 operator%(tvec3 const & v, T const & scalar); + GLM_FUNC_DECL tvec3 operator%(tvec3 const & v, T scalar); template - GLM_FUNC_DECL tvec3 operator%(tvec3 const & v, tvec1 const & scalar); + GLM_FUNC_DECL tvec3 operator%(tvec3 const & v1, tvec1 const & v2); template GLM_FUNC_DECL tvec3 operator%(T const & scalar, tvec3 const & v); template - GLM_FUNC_DECL tvec3 operator%(tvec1 const & scalar, tvec3 const & v); + GLM_FUNC_DECL tvec3 operator%(tvec1 const & v1, tvec3 const & v2); template GLM_FUNC_DECL tvec3 operator%(tvec3 const & v1, tvec3 const & v2); template - GLM_FUNC_DECL tvec3 operator&(tvec3 const & v, T const & scalar); + GLM_FUNC_DECL tvec3 operator&(tvec3 const & v1, T scalar); template - GLM_FUNC_DECL tvec3 operator&(tvec3 const & v, tvec1 const & scalar); + GLM_FUNC_DECL tvec3 operator&(tvec3 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec3 operator&(T const & scalar, tvec3 const & v); + GLM_FUNC_DECL tvec3 operator&(T scalar, tvec3 const & v); template - GLM_FUNC_DECL tvec3 operator&(tvec1 const & scalar, tvec3 const & v); + GLM_FUNC_DECL tvec3 operator&(tvec1 const & v1, tvec3 const & v2); template GLM_FUNC_DECL tvec3 operator&(tvec3 const & v1, tvec3 const & v2); template - GLM_FUNC_DECL tvec3 operator|(tvec3 const & v, T const & scalar); + GLM_FUNC_DECL tvec3 operator|(tvec3 const & v, T scalar); template - GLM_FUNC_DECL tvec3 operator|(tvec3 const & v, tvec1 const & scalar); + GLM_FUNC_DECL tvec3 operator|(tvec3 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec3 operator|(T const & scalar, tvec3 const & v); + GLM_FUNC_DECL tvec3 operator|(T scalar, tvec3 const & v); template - GLM_FUNC_DECL tvec3 operator|(tvec1 const & scalar, tvec3 const & v); + GLM_FUNC_DECL tvec3 operator|(tvec1 const & v1, tvec3 const & v2); template GLM_FUNC_DECL tvec3 operator|(tvec3 const & v1, tvec3 const & v2); template - GLM_FUNC_DECL tvec3 operator^(tvec3 const & v, T const & scalar); + GLM_FUNC_DECL tvec3 operator^(tvec3 const & v, T scalar); template - GLM_FUNC_DECL tvec3 operator^(tvec3 const & v, tvec1 const & scalar); + GLM_FUNC_DECL tvec3 operator^(tvec3 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec3 operator^(T const & scalar, tvec3 const & v); + GLM_FUNC_DECL tvec3 operator^(T scalar, tvec3 const & v); template - GLM_FUNC_DECL tvec3 operator^(tvec1 const & scalar, tvec3 const & v); + GLM_FUNC_DECL tvec3 operator^(tvec1 const & v1, tvec3 const & v2); template GLM_FUNC_DECL tvec3 operator^(tvec3 const & v1, tvec3 const & v2); template - GLM_FUNC_DECL tvec3 operator<<(tvec3 const & v, T const & scalar); + GLM_FUNC_DECL tvec3 operator<<(tvec3 const & v, T scalar); template - GLM_FUNC_DECL tvec3 operator<<(tvec3 const & v, tvec1 const & scalar); + GLM_FUNC_DECL tvec3 operator<<(tvec3 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec3 operator<<(T const & scalar, tvec3 const & v); + GLM_FUNC_DECL tvec3 operator<<(T scalar, tvec3 const & v); template - GLM_FUNC_DECL tvec3 operator<<(tvec1 const & scalar, tvec3 const & v); + GLM_FUNC_DECL tvec3 operator<<(tvec1 const & v1, tvec3 const & v2); template GLM_FUNC_DECL tvec3 operator<<(tvec3 const & v1, tvec3 const & v2); template - GLM_FUNC_DECL tvec3 operator>>(tvec3 const & v, T const & scalar); + GLM_FUNC_DECL tvec3 operator>>(tvec3 const & v, T scalar); template - GLM_FUNC_DECL tvec3 operator>>(tvec3 const & v, tvec1 const & scalar); + GLM_FUNC_DECL tvec3 operator>>(tvec3 const & v1, tvec1 const & v2); template - GLM_FUNC_DECL tvec3 operator>>(T const & scalar, tvec3 const & v); + GLM_FUNC_DECL tvec3 operator>>(T scalar, tvec3 const & v); template - GLM_FUNC_DECL tvec3 operator>>(tvec1 const & scalar, tvec3 const & v); + GLM_FUNC_DECL tvec3 operator>>(tvec1 const & v1, tvec3 const & v2); template GLM_FUNC_DECL tvec3 operator>>(tvec3 const & v1, tvec3 const & v2); diff --git a/glm/detail/type_vec3.inl b/glm/detail/type_vec3.inl index 38104a3a..f8e95a30 100644 --- a/glm/detail/type_vec3.inl +++ b/glm/detail/type_vec3.inl @@ -89,12 +89,12 @@ namespace glm {} template - GLM_FUNC_QUALIFIER tvec3::tvec3(T const & scalar) + GLM_FUNC_QUALIFIER tvec3::tvec3(T scalar) : x(scalar), y(scalar), z(scalar) {} template - GLM_FUNC_QUALIFIER tvec3::tvec3(T const & a, T const & b, T const & c) + GLM_FUNC_QUALIFIER tvec3::tvec3(T a, T b, T c) : x(a), y(b), z(c) {} @@ -102,7 +102,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER tvec3::tvec3(A const & a, B const & b, C const & c) : + GLM_FUNC_QUALIFIER tvec3::tvec3(A a, B b, C c) : x(static_cast(a)), y(static_cast(b)), z(static_cast(c)) @@ -120,7 +120,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER tvec3::tvec3(tvec2 const & a, B const & b) : + GLM_FUNC_QUALIFIER tvec3::tvec3(tvec2 const & a, B b) : x(static_cast(a.x)), y(static_cast(a.y)), z(static_cast(b)) @@ -136,7 +136,7 @@ namespace glm template template - GLM_FUNC_QUALIFIER tvec3::tvec3(A const & a, tvec2 const & b) : + GLM_FUNC_QUALIFIER tvec3::tvec3(A a, tvec2 const & b) : x(static_cast(a)), y(static_cast(b.x)), z(static_cast(b.y)) @@ -591,7 +591,7 @@ namespace glm // -- Binary arithmetic operators -- template - GLM_FUNC_QUALIFIER tvec3 operator+(tvec3 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec3 operator+(tvec3 const & v, T scalar) { return tvec3( v.x + scalar, @@ -609,7 +609,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec3 operator+(T const & scalar, tvec3 const & v) + GLM_FUNC_QUALIFIER tvec3 operator+(T scalar, tvec3 const & v) { return tvec3( scalar + v.x, @@ -636,7 +636,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec3 operator-(tvec3 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec3 operator-(tvec3 const & v, T scalar) { return tvec3( v.x - scalar, @@ -654,7 +654,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec3 operator-(T const & scalar, tvec3 const & v) + GLM_FUNC_QUALIFIER tvec3 operator-(T scalar, tvec3 const & v) { return tvec3( scalar - v.x, @@ -681,7 +681,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec3 operator*(tvec3 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec3 operator*(tvec3 const & v, T scalar) { return tvec3( v.x * scalar, @@ -699,7 +699,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec3 operator*(T const & scalar, tvec3 const & v) + GLM_FUNC_QUALIFIER tvec3 operator*(T scalar, tvec3 const & v) { return tvec3( scalar * v.x, @@ -726,7 +726,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec3 operator/(tvec3 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec3 operator/(tvec3 const & v, T scalar) { return tvec3( v.x / scalar, @@ -744,7 +744,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec3 operator/(T const & scalar, tvec3 const & v) + GLM_FUNC_QUALIFIER tvec3 operator/(T scalar, tvec3 const & v) { return tvec3( scalar / v.x, @@ -773,7 +773,7 @@ namespace glm // -- Binary bit operators -- template - GLM_FUNC_QUALIFIER tvec3 operator%(tvec3 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec3 operator%(tvec3 const & v, T scalar) { return tvec3( v.x % scalar, @@ -791,7 +791,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec3 operator%(T const & scalar, tvec3 const & v) + GLM_FUNC_QUALIFIER tvec3 operator%(T scalar, tvec3 const & v) { return tvec3( scalar % v.x, @@ -818,7 +818,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec3 operator&(tvec3 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec3 operator&(tvec3 const & v, T scalar) { return tvec3( v.x & scalar, @@ -836,7 +836,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec3 operator&(T const & scalar, tvec3 const & v) + GLM_FUNC_QUALIFIER tvec3 operator&(T scalar, tvec3 const & v) { return tvec3( scalar & v.x, @@ -863,7 +863,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec3 operator|(tvec3 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec3 operator|(tvec3 const & v, T scalar) { return tvec3( v.x | scalar, @@ -881,7 +881,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec3 operator|(T const & scalar, tvec3 const & v) + GLM_FUNC_QUALIFIER tvec3 operator|(T scalar, tvec3 const & v) { return tvec3( scalar | v.x, @@ -908,7 +908,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec3 operator^(tvec3 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec3 operator^(tvec3 const & v, T scalar) { return tvec3( v.x ^ scalar, @@ -926,7 +926,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec3 operator^(T const & scalar, tvec3 const & v) + GLM_FUNC_QUALIFIER tvec3 operator^(T scalar, tvec3 const & v) { return tvec3( scalar ^ v.x, @@ -953,7 +953,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec3 operator<<(tvec3 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec3 operator<<(tvec3 const & v, T scalar) { return tvec3( v.x << scalar, @@ -971,7 +971,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec3 operator<<(T const & scalar, tvec3 const & v) + GLM_FUNC_QUALIFIER tvec3 operator<<(T scalar, tvec3 const & v) { return tvec3( scalar << v.x, @@ -998,7 +998,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec3 operator>>(tvec3 const & v, T const & scalar) + GLM_FUNC_QUALIFIER tvec3 operator>>(tvec3 const & v, T scalar) { return tvec3( v.x >> scalar, @@ -1016,7 +1016,7 @@ namespace glm } template - GLM_FUNC_QUALIFIER tvec3 operator>>(T const & scalar, tvec3 const & v) + GLM_FUNC_QUALIFIER tvec3 operator>>(T scalar, tvec3 const & v) { return tvec3( scalar >> v.x,