This commit is contained in:
KaruroChori 2025-02-27 12:43:43 +00:00 committed by GitHub
commit faddfb13fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 42 additions and 3 deletions

View file

@ -301,6 +301,9 @@ namespace glm
template<qualifier Q>
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, bool, Q> operator||(vec<1, bool, Q> const& v1, vec<1, bool, Q> const& v2);
template<qualifier Q>
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, bool, Q> operator!(vec<1, bool, Q> const& v);
}//namespace glm
#ifndef GLM_EXTERNAL_TEMPLATE

View file

@ -550,4 +550,11 @@ namespace glm
{
return vec<1, bool, Q>(v1.x || v2.x);
}
template<qualifier Q>
GLM_FUNC_QUALIFIER GLM_CONSTEXPR vec<1, bool, Q> operator!(vec<1, bool, Q> const& v)
{
return vec<1, bool, Q>(
!v.x);
}
}//namespace glm

View file

@ -399,6 +399,9 @@ namespace glm
template<qualifier Q>
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, bool, Q> operator||(vec<2, bool, Q> const& v1, vec<2, bool, Q> const& v2);
template<qualifier Q>
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, bool, Q> operator!(vec<2, bool, Q> const& v);
}//namespace glm
#ifndef GLM_EXTERNAL_TEMPLATE

View file

@ -912,4 +912,12 @@ namespace glm
{
return vec<2, bool, Q>(v1.x || v2.x, v1.y || v2.y);
}
template<qualifier Q>
GLM_FUNC_QUALIFIER GLM_CONSTEXPR vec<2, bool, Q> operator!(vec<2, bool, Q> const& v)
{
return vec<2, bool, Q>(
!v.x,
!v.y);
}
}//namespace glm

View file

@ -437,9 +437,8 @@ namespace glm
template<qualifier Q>
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, bool, Q> operator||(vec<3, bool, Q> const& v1, vec<3, bool, Q> const& v2);
template<qualifier Q>
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, bool, Q> operator!(vec<3, bool, Q> const& v);
}//namespace glm
#ifndef GLM_EXTERNAL_TEMPLATE

View file

@ -827,6 +827,16 @@ namespace glm
{
return vec<3, bool, Q>(v1.x || v2.x, v1.y || v2.y, v1.z || v2.z);
}
template<qualifier Q>
GLM_FUNC_QUALIFIER GLM_CONSTEXPR vec<3, bool, Q> operator!(vec<3, bool, Q> const& v)
{
return vec<3, bool, Q>(
!v.x,
!v.y,
!v.z);
}
}//namespace glm

View file

@ -507,6 +507,9 @@ namespace glm
template<qualifier Q>
GLM_FUNC_DECL GLM_CONSTEXPR vec<4, bool, Q> operator||(vec<4, bool, Q> const& v1, vec<4, bool, Q> const& v2);
template<qualifier Q>
GLM_FUNC_DECL GLM_CONSTEXPR vec<4, bool, Q> operator!(vec<4, bool, Q> const& v);
}//namespace glm
#ifndef GLM_EXTERNAL_TEMPLATE

View file

@ -1018,6 +1018,12 @@ namespace detail
{
return vec<4, bool, Q>(v1.x || v2.x, v1.y || v2.y, v1.z || v2.z, v1.w || v2.w);
}
template<qualifier Q>
GLM_FUNC_QUALIFIER GLM_CONSTEXPR vec<4, bool, Q> operator!(vec<4, bool, Q> const& v)
{
return vec<4, bool, Q>(!v.x, !v.y, !v.z, !v.w);
}
}//namespace glm
#if GLM_CONFIG_SIMD == GLM_ENABLE