|
|
|
@ -142,9 +142,9 @@ namespace detail |
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U, precision Q> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P>::tvec4 |
|
|
|
|
( |
|
|
|
|
tvec4<U, Q> const & v |
|
|
|
|
) : |
|
|
|
|
( |
|
|
|
|
tvec4<U, Q> const & v |
|
|
|
|
) : |
|
|
|
|
x(static_cast<T>(v.x)), |
|
|
|
|
y(static_cast<T>(v.y)), |
|
|
|
|
z(static_cast<T>(v.z)), |
|
|
|
@ -239,10 +239,7 @@ namespace detail |
|
|
|
|
// Unary arithmetic operators |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator= |
|
|
|
|
( |
|
|
|
|
tvec4<T, P> const & v |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator= (tvec4<T, P> const & v) |
|
|
|
|
{ |
|
|
|
|
this->x = v.x; |
|
|
|
|
this->y = v.y; |
|
|
|
@ -253,10 +250,7 @@ namespace detail |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U, precision Q> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator= |
|
|
|
|
( |
|
|
|
|
tvec4<U, Q> const & v |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator= (tvec4<U, Q> const & v) |
|
|
|
|
{ |
|
|
|
|
this->x = static_cast<T>(v.x); |
|
|
|
|
this->y = static_cast<T>(v.y); |
|
|
|
@ -267,10 +261,7 @@ namespace detail |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator+= |
|
|
|
|
( |
|
|
|
|
U const & s |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator+= (U s) |
|
|
|
|
{ |
|
|
|
|
this->x += static_cast<T>(s); |
|
|
|
|
this->y += static_cast<T>(s); |
|
|
|
@ -281,10 +272,7 @@ namespace detail |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator+= |
|
|
|
|
( |
|
|
|
|
tvec4<U, P> const & v |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator+= (tvec4<U, P> const & v) |
|
|
|
|
{ |
|
|
|
|
this->x += static_cast<T>(v.x); |
|
|
|
|
this->y += static_cast<T>(v.y); |
|
|
|
@ -295,10 +283,7 @@ namespace detail |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator-= |
|
|
|
|
( |
|
|
|
|
U const & s |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator-= (U s) |
|
|
|
|
{ |
|
|
|
|
this->x -= static_cast<T>(s); |
|
|
|
|
this->y -= static_cast<T>(s); |
|
|
|
@ -309,10 +294,7 @@ namespace detail |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator-= |
|
|
|
|
( |
|
|
|
|
tvec4<U, P> const & v |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator-= (tvec4<U, P> const & v) |
|
|
|
|
{ |
|
|
|
|
this->x -= static_cast<T>(v.x); |
|
|
|
|
this->y -= static_cast<T>(v.y); |
|
|
|
@ -323,10 +305,7 @@ namespace detail |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator*= |
|
|
|
|
( |
|
|
|
|
U const & s |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator*= (U s) |
|
|
|
|
{ |
|
|
|
|
this->x *= static_cast<T>(s); |
|
|
|
|
this->y *= static_cast<T>(s); |
|
|
|
@ -337,10 +316,7 @@ namespace detail |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator*= |
|
|
|
|
( |
|
|
|
|
tvec4<U, P> const & v |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator*= (tvec4<U, P> const & v) |
|
|
|
|
{ |
|
|
|
|
this->x *= static_cast<T>(v.x); |
|
|
|
|
this->y *= static_cast<T>(v.y); |
|
|
|
@ -351,10 +327,7 @@ namespace detail |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator/= |
|
|
|
|
( |
|
|
|
|
U const & s |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator/= (U s) |
|
|
|
|
{ |
|
|
|
|
this->x /= static_cast<T>(s); |
|
|
|
|
this->y /= static_cast<T>(s); |
|
|
|
@ -365,10 +338,7 @@ namespace detail |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator/= |
|
|
|
|
( |
|
|
|
|
tvec4<U, P> const & v |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator/= (tvec4<U, P> const & v) |
|
|
|
|
{ |
|
|
|
|
this->x /= static_cast<T>(v.x); |
|
|
|
|
this->y /= static_cast<T>(v.y); |
|
|
|
@ -421,10 +391,7 @@ namespace detail |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator%= |
|
|
|
|
( |
|
|
|
|
U const & s |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator%= (U s) |
|
|
|
|
{ |
|
|
|
|
this->x %= static_cast<T>(s); |
|
|
|
|
this->y %= static_cast<T>(s); |
|
|
|
@ -435,10 +402,7 @@ namespace detail |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator%= |
|
|
|
|
( |
|
|
|
|
tvec4<U, P> const & v |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator%= (tvec4<U, P> const & v) |
|
|
|
|
{ |
|
|
|
|
this->x %= static_cast<T>(v.x); |
|
|
|
|
this->y %= static_cast<T>(v.y); |
|
|
|
@ -449,10 +413,7 @@ namespace detail |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator&= |
|
|
|
|
( |
|
|
|
|
U const & s |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator&= (U s) |
|
|
|
|
{ |
|
|
|
|
this->x &= static_cast<T>(s); |
|
|
|
|
this->y &= static_cast<T>(s); |
|
|
|
@ -463,10 +424,7 @@ namespace detail |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator&= |
|
|
|
|
( |
|
|
|
|
tvec4<U, P> const & v |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator&= (tvec4<U, P> const & v) |
|
|
|
|
{ |
|
|
|
|
this->x &= static_cast<T>(v.x); |
|
|
|
|
this->y &= static_cast<T>(v.y); |
|
|
|
@ -477,10 +435,7 @@ namespace detail |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator|= |
|
|
|
|
( |
|
|
|
|
U const & s |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator|= (U s) |
|
|
|
|
{ |
|
|
|
|
this->x |= static_cast<T>(s); |
|
|
|
|
this->y |= static_cast<T>(s); |
|
|
|
@ -491,10 +446,7 @@ namespace detail |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator|= |
|
|
|
|
( |
|
|
|
|
tvec4<U, P> const & v |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator|= (tvec4<U, P> const & v) |
|
|
|
|
{ |
|
|
|
|
this->x |= static_cast<T>(v.x); |
|
|
|
|
this->y |= static_cast<T>(v.y); |
|
|
|
@ -505,10 +457,7 @@ namespace detail |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator^= |
|
|
|
|
( |
|
|
|
|
U const & s |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator^= (U s) |
|
|
|
|
{ |
|
|
|
|
this->x ^= static_cast<T>(s); |
|
|
|
|
this->y ^= static_cast<T>(s); |
|
|
|
@ -519,10 +468,7 @@ namespace detail |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator^= |
|
|
|
|
( |
|
|
|
|
tvec4<U, P> const & v |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator^= (tvec4<U, P> const & v) |
|
|
|
|
{ |
|
|
|
|
this->x ^= static_cast<T>(v.x); |
|
|
|
|
this->y ^= static_cast<T>(v.y); |
|
|
|
@ -533,10 +479,7 @@ namespace detail |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator<<= |
|
|
|
|
( |
|
|
|
|
U const & s |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator<<= (U s) |
|
|
|
|
{ |
|
|
|
|
this->x <<= static_cast<T>(s); |
|
|
|
|
this->y <<= static_cast<T>(s); |
|
|
|
@ -547,10 +490,7 @@ namespace detail |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator<<= |
|
|
|
|
( |
|
|
|
|
tvec4<U, P> const & v |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator<<= (tvec4<U, P> const & v) |
|
|
|
|
{ |
|
|
|
|
this->x <<= static_cast<T>(v.x); |
|
|
|
|
this->y <<= static_cast<T>(v.y); |
|
|
|
@ -561,10 +501,7 @@ namespace detail |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator>>= |
|
|
|
|
( |
|
|
|
|
U const & s |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator>>= (U s) |
|
|
|
|
{ |
|
|
|
|
this->x >>= static_cast<T>(s); |
|
|
|
|
this->y >>= static_cast<T>(s); |
|
|
|
@ -575,10 +512,7 @@ namespace detail |
|
|
|
|
|
|
|
|
|
template <typename T, precision P> |
|
|
|
|
template <typename U> |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator>>= |
|
|
|
|
( |
|
|
|
|
tvec4<U, P> const & v |
|
|
|
|
) |
|
|
|
|
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator>>= (tvec4<U, P> const & v) |
|
|
|
|
{ |
|
|
|
|
this->x >>= static_cast<T>(v.x); |
|
|
|
|
this->y >>= static_cast<T>(v.y); |
|
|
|
|