mirror of
https://github.com/g-truc/glm.git
synced 2024-11-25 18:04:34 +00:00
Added C++17 [[nodiscard]] support #1217
This commit is contained in:
parent
1ac95994c4
commit
5d73e17e58
@ -542,25 +542,25 @@ namespace detail
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<length_t L, typename T, qualifier Q>
|
template<length_t L, typename T, qualifier Q>
|
||||||
GLM_FUNC_QUALIFIER vec<L, T, Q> splatX(vec<L, T, Q> const& a)
|
GLM_FUNC_QUALIFIER GLM_CONSTEXPR vec<L, T, Q> splatX(vec<L, T, Q> const& a)
|
||||||
{
|
{
|
||||||
return detail::convert_splat<L, T, Q, detail::is_aligned<Q>::value>::template call<0>(a);
|
return detail::convert_splat<L, T, Q, detail::is_aligned<Q>::value>::template call<0>(a);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<length_t L, typename T, qualifier Q>
|
template<length_t L, typename T, qualifier Q>
|
||||||
GLM_FUNC_QUALIFIER vec<L, T, Q> splatY(vec<L, T, Q> const& a)
|
GLM_FUNC_QUALIFIER GLM_CONSTEXPR vec<L, T, Q> splatY(vec<L, T, Q> const& a)
|
||||||
{
|
{
|
||||||
return detail::convert_splat<L, T, Q, detail::is_aligned<Q>::value>::template call<1>(a);
|
return detail::convert_splat<L, T, Q, detail::is_aligned<Q>::value>::template call<1>(a);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<length_t L, typename T, qualifier Q>
|
template<length_t L, typename T, qualifier Q>
|
||||||
GLM_FUNC_QUALIFIER vec<L, T, Q> splatZ(vec<L, T, Q> const& a)
|
GLM_FUNC_QUALIFIER GLM_CONSTEXPR vec<L, T, Q> splatZ(vec<L, T, Q> const& a)
|
||||||
{
|
{
|
||||||
return detail::convert_splat<L, T, Q, detail::is_aligned<Q>::value>::template call<2>(a);
|
return detail::convert_splat<L, T, Q, detail::is_aligned<Q>::value>::template call<2>(a);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<length_t L, typename T, qualifier Q>
|
template<length_t L, typename T, qualifier Q>
|
||||||
GLM_FUNC_QUALIFIER vec<L, T, Q> splatW(vec<L, T, Q> const& a)
|
GLM_FUNC_QUALIFIER GLM_CONSTEXPR vec<L, T, Q> splatW(vec<L, T, Q> const& a)
|
||||||
{
|
{
|
||||||
return detail::convert_splat<L, T, Q, detail::is_aligned<Q>::value>::template call<3>(a);
|
return detail::convert_splat<L, T, Q, detail::is_aligned<Q>::value>::template call<3>(a);
|
||||||
}
|
}
|
||||||
|
@ -339,6 +339,13 @@
|
|||||||
# define GLM_IF_CONSTEXPR if
|
# define GLM_IF_CONSTEXPR if
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// [nodiscard]
|
||||||
|
#if GLM_LANG & GLM_LANG_CXX17_FLAG
|
||||||
|
# define GLM_NODISCARD [[nodiscard]]
|
||||||
|
#else
|
||||||
|
# define GLM_NODISCARD
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
#if GLM_LANG & GLM_LANG_CXX11_FLAG
|
#if GLM_LANG & GLM_LANG_CXX11_FLAG
|
||||||
# define GLM_HAS_ASSIGNABLE 1
|
# define GLM_HAS_ASSIGNABLE 1
|
||||||
@ -486,7 +493,9 @@
|
|||||||
# define GLM_NEVER_INLINE
|
# define GLM_NEVER_INLINE
|
||||||
#endif//defined(GLM_FORCE_INLINE)
|
#endif//defined(GLM_FORCE_INLINE)
|
||||||
|
|
||||||
#define GLM_FUNC_DECL GLM_CUDA_FUNC_DECL
|
#define GLM_CTOR_DECL GLM_CUDA_FUNC_DECL GLM_CONSTEXPR
|
||||||
|
#define GLM_FUNC_DISCARD_DECL GLM_CUDA_FUNC_DECL
|
||||||
|
#define GLM_FUNC_DECL GLM_NODISCARD GLM_CUDA_FUNC_DECL
|
||||||
#define GLM_FUNC_QUALIFIER GLM_CUDA_FUNC_DEF GLM_INLINE
|
#define GLM_FUNC_QUALIFIER GLM_CUDA_FUNC_DEF GLM_INLINE
|
||||||
|
|
||||||
// Do not use CUDA function qualifiers on CUDA compiler when functions are made default
|
// Do not use CUDA function qualifiers on CUDA compiler when functions are made default
|
||||||
@ -494,14 +503,14 @@
|
|||||||
# define GLM_DEFAULTED_FUNC_DECL
|
# define GLM_DEFAULTED_FUNC_DECL
|
||||||
# define GLM_DEFAULTED_FUNC_QUALIFIER GLM_INLINE
|
# define GLM_DEFAULTED_FUNC_QUALIFIER GLM_INLINE
|
||||||
#else
|
#else
|
||||||
# define GLM_DEFAULTED_FUNC_DECL GLM_FUNC_DECL
|
# define GLM_DEFAULTED_FUNC_DECL GLM_FUNC_DISCARD_DECL
|
||||||
# define GLM_DEFAULTED_FUNC_QUALIFIER GLM_FUNC_QUALIFIER
|
# define GLM_DEFAULTED_FUNC_QUALIFIER GLM_FUNC_QUALIFIER
|
||||||
#endif//GLM_HAS_DEFAULTED_FUNCTIONS
|
#endif//GLM_HAS_DEFAULTED_FUNCTIONS
|
||||||
#if !defined(GLM_FORCE_CTOR_INIT)
|
#if !defined(GLM_FORCE_CTOR_INIT)
|
||||||
# define GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_DEFAULTED_FUNC_DECL
|
# define GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CUDA_FUNC_DECL
|
||||||
# define GLM_DEFAULTED_DEFAULT_CTOR_QUALIFIER GLM_DEFAULTED_FUNC_QUALIFIER
|
# define GLM_DEFAULTED_DEFAULT_CTOR_QUALIFIER GLM_DEFAULTED_FUNC_QUALIFIER
|
||||||
#else
|
#else
|
||||||
# define GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_FUNC_DECL
|
# define GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_FUNC_DISCARD_DECL
|
||||||
# define GLM_DEFAULTED_DEFAULT_CTOR_QUALIFIER GLM_FUNC_QUALIFIER
|
# define GLM_DEFAULTED_DEFAULT_CTOR_QUALIFIER GLM_FUNC_QUALIFIER
|
||||||
#endif//GLM_FORCE_CTOR_INIT
|
#endif//GLM_FORCE_CTOR_INIT
|
||||||
|
|
||||||
|
@ -34,67 +34,67 @@ namespace glm
|
|||||||
|
|
||||||
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR mat() GLM_DEFAULT_CTOR;
|
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR mat() GLM_DEFAULT_CTOR;
|
||||||
template<qualifier P>
|
template<qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(mat<2, 2, T, P> const& m);
|
GLM_CTOR_DECL mat(mat<2, 2, T, P> const& m);
|
||||||
|
|
||||||
GLM_FUNC_DECL explicit GLM_CONSTEXPR mat(T scalar);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(T scalar);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
T const& x1, T const& y1,
|
T const& x1, T const& y1,
|
||||||
T const& x2, T const& y2);
|
T const& x2, T const& y2);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
col_type const& v1,
|
col_type const& v1,
|
||||||
col_type const& v2);
|
col_type const& v2);
|
||||||
|
|
||||||
// -- Conversions --
|
// -- Conversions --
|
||||||
|
|
||||||
template<typename U, typename V, typename M, typename N>
|
template<typename U, typename V, typename M, typename N>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
U const& x1, V const& y1,
|
U const& x1, V const& y1,
|
||||||
M const& x2, N const& y2);
|
M const& x2, N const& y2);
|
||||||
|
|
||||||
template<typename U, typename V>
|
template<typename U, typename V>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
vec<2, U, Q> const& v1,
|
vec<2, U, Q> const& v1,
|
||||||
vec<2, V, Q> const& v2);
|
vec<2, V, Q> const& v2);
|
||||||
|
|
||||||
// -- Matrix conversions --
|
// -- Matrix conversions --
|
||||||
|
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 2, U, P> const& m);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<2, 2, U, P> const& m);
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 3, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<3, 3, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 4, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<4, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 3, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<2, 3, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 2, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<3, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 4, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<2, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 2, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<4, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 4, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<3, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 3, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<4, 3, T, Q> const& x);
|
||||||
|
|
||||||
// -- Unary arithmetic operators --
|
// -- Unary arithmetic operators --
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator=(mat<2, 2, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator=(mat<2, 2, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator+=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator+=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator+=(mat<2, 2, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator+=(mat<2, 2, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator-=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator-=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator-=(mat<2, 2, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator-=(mat<2, 2, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator*=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator*=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator*=(mat<2, 2, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator*=(mat<2, 2, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator/=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator/=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator/=(mat<2, 2, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator/=(mat<2, 2, U, Q> const& m);
|
||||||
|
|
||||||
// -- Increment and decrement operators --
|
// -- Increment and decrement operators --
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator++ ();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator++ ();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator-- ();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 2, T, Q> & operator-- ();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 2, T, Q> operator++(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 2, T, Q> operator++(int);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 2, T, Q> operator--(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 2, T, Q> operator--(int);
|
||||||
};
|
};
|
||||||
|
@ -35,63 +35,63 @@ namespace glm
|
|||||||
|
|
||||||
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR mat() GLM_DEFAULT_CTOR;
|
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR mat() GLM_DEFAULT_CTOR;
|
||||||
template<qualifier P>
|
template<qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(mat<2, 3, T, P> const& m);
|
GLM_CTOR_DECL mat(mat<2, 3, T, P> const& m);
|
||||||
|
|
||||||
GLM_FUNC_DECL explicit GLM_CONSTEXPR mat(T scalar);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(T scalar);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
T x0, T y0, T z0,
|
T x0, T y0, T z0,
|
||||||
T x1, T y1, T z1);
|
T x1, T y1, T z1);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
col_type const& v0,
|
col_type const& v0,
|
||||||
col_type const& v1);
|
col_type const& v1);
|
||||||
|
|
||||||
// -- Conversions --
|
// -- Conversions --
|
||||||
|
|
||||||
template<typename X1, typename Y1, typename Z1, typename X2, typename Y2, typename Z2>
|
template<typename X1, typename Y1, typename Z1, typename X2, typename Y2, typename Z2>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
X1 x1, Y1 y1, Z1 z1,
|
X1 x1, Y1 y1, Z1 z1,
|
||||||
X2 x2, Y2 y2, Z2 z2);
|
X2 x2, Y2 y2, Z2 z2);
|
||||||
|
|
||||||
template<typename U, typename V>
|
template<typename U, typename V>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
vec<3, U, Q> const& v1,
|
vec<3, U, Q> const& v1,
|
||||||
vec<3, V, Q> const& v2);
|
vec<3, V, Q> const& v2);
|
||||||
|
|
||||||
// -- Matrix conversions --
|
// -- Matrix conversions --
|
||||||
|
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 3, U, P> const& m);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<2, 3, U, P> const& m);
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 2, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<2, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 3, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<3, 3, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 4, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<4, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 4, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<2, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 2, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<3, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 4, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<3, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 2, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<4, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 3, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<4, 3, T, Q> const& x);
|
||||||
|
|
||||||
// -- Unary arithmetic operators --
|
// -- Unary arithmetic operators --
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 3, T, Q> & operator=(mat<2, 3, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 3, T, Q> & operator=(mat<2, 3, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 3, T, Q> & operator+=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 3, T, Q> & operator+=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 3, T, Q> & operator+=(mat<2, 3, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 3, T, Q> & operator+=(mat<2, 3, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 3, T, Q> & operator-=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 3, T, Q> & operator-=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 3, T, Q> & operator-=(mat<2, 3, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 3, T, Q> & operator-=(mat<2, 3, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 3, T, Q> & operator*=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 3, T, Q> & operator*=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 3, T, Q> & operator/=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 3, T, Q> & operator/=(U s);
|
||||||
|
|
||||||
// -- Increment and decrement operators --
|
// -- Increment and decrement operators --
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 3, T, Q> & operator++ ();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 3, T, Q> & operator++ ();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 3, T, Q> & operator-- ();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 3, T, Q> & operator-- ();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 3, T, Q> operator++(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 3, T, Q> operator++(int);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 3, T, Q> operator--(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 3, T, Q> operator--(int);
|
||||||
};
|
};
|
||||||
|
@ -35,13 +35,13 @@ namespace glm
|
|||||||
|
|
||||||
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR mat() GLM_DEFAULT_CTOR;
|
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR mat() GLM_DEFAULT_CTOR;
|
||||||
template<qualifier P>
|
template<qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(mat<2, 4, T, P> const& m);
|
GLM_CTOR_DECL mat(mat<2, 4, T, P> const& m);
|
||||||
|
|
||||||
GLM_FUNC_DECL explicit GLM_CONSTEXPR mat(T scalar);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(T scalar);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
T x0, T y0, T z0, T w0,
|
T x0, T y0, T z0, T w0,
|
||||||
T x1, T y1, T z1, T w1);
|
T x1, T y1, T z1, T w1);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
col_type const& v0,
|
col_type const& v0,
|
||||||
col_type const& v1);
|
col_type const& v1);
|
||||||
|
|
||||||
@ -50,50 +50,50 @@ namespace glm
|
|||||||
template<
|
template<
|
||||||
typename X1, typename Y1, typename Z1, typename W1,
|
typename X1, typename Y1, typename Z1, typename W1,
|
||||||
typename X2, typename Y2, typename Z2, typename W2>
|
typename X2, typename Y2, typename Z2, typename W2>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
X1 x1, Y1 y1, Z1 z1, W1 w1,
|
X1 x1, Y1 y1, Z1 z1, W1 w1,
|
||||||
X2 x2, Y2 y2, Z2 z2, W2 w2);
|
X2 x2, Y2 y2, Z2 z2, W2 w2);
|
||||||
|
|
||||||
template<typename U, typename V>
|
template<typename U, typename V>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
vec<4, U, Q> const& v1,
|
vec<4, U, Q> const& v1,
|
||||||
vec<4, V, Q> const& v2);
|
vec<4, V, Q> const& v2);
|
||||||
|
|
||||||
// -- Matrix conversions --
|
// -- Matrix conversions --
|
||||||
|
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 4, U, P> const& m);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<2, 4, U, P> const& m);
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 2, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<2, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 3, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<3, 3, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 4, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<4, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 3, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<2, 3, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 2, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<3, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 4, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<3, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 2, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<4, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 3, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<4, 3, T, Q> const& x);
|
||||||
|
|
||||||
// -- Unary arithmetic operators --
|
// -- Unary arithmetic operators --
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 4, T, Q> & operator=(mat<2, 4, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 4, T, Q> & operator=(mat<2, 4, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 4, T, Q> & operator+=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 4, T, Q> & operator+=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 4, T, Q> & operator+=(mat<2, 4, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 4, T, Q> & operator+=(mat<2, 4, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 4, T, Q> & operator-=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 4, T, Q> & operator-=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 4, T, Q> & operator-=(mat<2, 4, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 4, T, Q> & operator-=(mat<2, 4, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 4, T, Q> & operator*=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 4, T, Q> & operator*=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 4, T, Q> & operator/=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 4, T, Q> & operator/=(U s);
|
||||||
|
|
||||||
// -- Increment and decrement operators --
|
// -- Increment and decrement operators --
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 4, T, Q> & operator++ ();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 4, T, Q> & operator++ ();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 4, T, Q> & operator-- ();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<2, 4, T, Q> & operator-- ();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 4, T, Q> operator++(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 4, T, Q> operator++(int);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 4, T, Q> operator--(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR mat<2, 4, T, Q> operator--(int);
|
||||||
};
|
};
|
||||||
|
@ -35,14 +35,14 @@ namespace glm
|
|||||||
|
|
||||||
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR mat() GLM_DEFAULT_CTOR;
|
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR mat() GLM_DEFAULT_CTOR;
|
||||||
template<qualifier P>
|
template<qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(mat<3, 2, T, P> const& m);
|
GLM_CTOR_DECL mat(mat<3, 2, T, P> const& m);
|
||||||
|
|
||||||
GLM_FUNC_DECL explicit GLM_CONSTEXPR mat(T scalar);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(T scalar);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
T x0, T y0,
|
T x0, T y0,
|
||||||
T x1, T y1,
|
T x1, T y1,
|
||||||
T x2, T y2);
|
T x2, T y2);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
col_type const& v0,
|
col_type const& v0,
|
||||||
col_type const& v1,
|
col_type const& v1,
|
||||||
col_type const& v2);
|
col_type const& v2);
|
||||||
@ -53,13 +53,13 @@ namespace glm
|
|||||||
typename X1, typename Y1,
|
typename X1, typename Y1,
|
||||||
typename X2, typename Y2,
|
typename X2, typename Y2,
|
||||||
typename X3, typename Y3>
|
typename X3, typename Y3>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
X1 x1, Y1 y1,
|
X1 x1, Y1 y1,
|
||||||
X2 x2, Y2 y2,
|
X2 x2, Y2 y2,
|
||||||
X3 x3, Y3 y3);
|
X3 x3, Y3 y3);
|
||||||
|
|
||||||
template<typename V1, typename V2, typename V3>
|
template<typename V1, typename V2, typename V3>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
vec<2, V1, Q> const& v1,
|
vec<2, V1, Q> const& v1,
|
||||||
vec<2, V2, Q> const& v2,
|
vec<2, V2, Q> const& v2,
|
||||||
vec<2, V3, Q> const& v3);
|
vec<2, V3, Q> const& v3);
|
||||||
@ -67,38 +67,38 @@ namespace glm
|
|||||||
// -- Matrix conversions --
|
// -- Matrix conversions --
|
||||||
|
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 2, U, P> const& m);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<3, 2, U, P> const& m);
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 2, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<2, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 3, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<3, 3, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 4, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<4, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 3, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<2, 3, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 4, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<2, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 4, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<3, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 2, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<4, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 3, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<4, 3, T, Q> const& x);
|
||||||
|
|
||||||
// -- Unary arithmetic operators --
|
// -- Unary arithmetic operators --
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 2, T, Q> & operator=(mat<3, 2, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 2, T, Q> & operator=(mat<3, 2, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 2, T, Q> & operator+=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 2, T, Q> & operator+=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 2, T, Q> & operator+=(mat<3, 2, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 2, T, Q> & operator+=(mat<3, 2, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 2, T, Q> & operator-=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 2, T, Q> & operator-=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 2, T, Q> & operator-=(mat<3, 2, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 2, T, Q> & operator-=(mat<3, 2, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 2, T, Q> & operator*=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 2, T, Q> & operator*=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 2, T, Q> & operator/=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 2, T, Q> & operator/=(U s);
|
||||||
|
|
||||||
// -- Increment and decrement operators --
|
// -- Increment and decrement operators --
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 2, T, Q> & operator++ ();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 2, T, Q> & operator++ ();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 2, T, Q> & operator-- ();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 2, T, Q> & operator-- ();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 2, T, Q> operator++(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 2, T, Q> operator++(int);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 2, T, Q> operator--(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 2, T, Q> operator--(int);
|
||||||
};
|
};
|
||||||
|
@ -34,14 +34,14 @@ namespace glm
|
|||||||
|
|
||||||
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR mat() GLM_DEFAULT_CTOR;
|
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR mat() GLM_DEFAULT_CTOR;
|
||||||
template<qualifier P>
|
template<qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(mat<3, 3, T, P> const& m);
|
GLM_CTOR_DECL mat(mat<3, 3, T, P> const& m);
|
||||||
|
|
||||||
GLM_FUNC_DECL explicit GLM_CONSTEXPR mat(T scalar);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(T scalar);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
T x0, T y0, T z0,
|
T x0, T y0, T z0,
|
||||||
T x1, T y1, T z1,
|
T x1, T y1, T z1,
|
||||||
T x2, T y2, T z2);
|
T x2, T y2, T z2);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
col_type const& v0,
|
col_type const& v0,
|
||||||
col_type const& v1,
|
col_type const& v1,
|
||||||
col_type const& v2);
|
col_type const& v2);
|
||||||
@ -52,13 +52,13 @@ namespace glm
|
|||||||
typename X1, typename Y1, typename Z1,
|
typename X1, typename Y1, typename Z1,
|
||||||
typename X2, typename Y2, typename Z2,
|
typename X2, typename Y2, typename Z2,
|
||||||
typename X3, typename Y3, typename Z3>
|
typename X3, typename Y3, typename Z3>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
X1 x1, Y1 y1, Z1 z1,
|
X1 x1, Y1 y1, Z1 z1,
|
||||||
X2 x2, Y2 y2, Z2 z2,
|
X2 x2, Y2 y2, Z2 z2,
|
||||||
X3 x3, Y3 y3, Z3 z3);
|
X3 x3, Y3 y3, Z3 z3);
|
||||||
|
|
||||||
template<typename V1, typename V2, typename V3>
|
template<typename V1, typename V2, typename V3>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
vec<3, V1, Q> const& v1,
|
vec<3, V1, Q> const& v1,
|
||||||
vec<3, V2, Q> const& v2,
|
vec<3, V2, Q> const& v2,
|
||||||
vec<3, V3, Q> const& v3);
|
vec<3, V3, Q> const& v3);
|
||||||
@ -66,42 +66,42 @@ namespace glm
|
|||||||
// -- Matrix conversions --
|
// -- Matrix conversions --
|
||||||
|
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 3, U, P> const& m);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<3, 3, U, P> const& m);
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 2, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<2, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 4, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<4, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 3, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<2, 3, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 2, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<3, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 4, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<2, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 2, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<4, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 4, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<3, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 3, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<4, 3, T, Q> const& x);
|
||||||
|
|
||||||
// -- Unary arithmetic operators --
|
// -- Unary arithmetic operators --
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator=(mat<3, 3, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator=(mat<3, 3, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator+=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator+=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator+=(mat<3, 3, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator+=(mat<3, 3, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator-=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator-=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator-=(mat<3, 3, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator-=(mat<3, 3, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator*=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator*=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator*=(mat<3, 3, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator*=(mat<3, 3, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator/=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator/=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator/=(mat<3, 3, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator/=(mat<3, 3, U, Q> const& m);
|
||||||
|
|
||||||
// -- Increment and decrement operators --
|
// -- Increment and decrement operators --
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator++();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator++();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator--();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 3, T, Q> & operator--();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 3, T, Q> operator++(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 3, T, Q> operator++(int);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 3, T, Q> operator--(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 3, T, Q> operator--(int);
|
||||||
};
|
};
|
||||||
|
@ -35,14 +35,14 @@ namespace glm
|
|||||||
|
|
||||||
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR mat() GLM_DEFAULT_CTOR;
|
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR mat() GLM_DEFAULT_CTOR;
|
||||||
template<qualifier P>
|
template<qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(mat<3, 4, T, P> const& m);
|
GLM_CTOR_DECL mat(mat<3, 4, T, P> const& m);
|
||||||
|
|
||||||
GLM_FUNC_DECL explicit GLM_CONSTEXPR mat(T scalar);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(T scalar);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
T x0, T y0, T z0, T w0,
|
T x0, T y0, T z0, T w0,
|
||||||
T x1, T y1, T z1, T w1,
|
T x1, T y1, T z1, T w1,
|
||||||
T x2, T y2, T z2, T w2);
|
T x2, T y2, T z2, T w2);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
col_type const& v0,
|
col_type const& v0,
|
||||||
col_type const& v1,
|
col_type const& v1,
|
||||||
col_type const& v2);
|
col_type const& v2);
|
||||||
@ -53,13 +53,13 @@ namespace glm
|
|||||||
typename X1, typename Y1, typename Z1, typename W1,
|
typename X1, typename Y1, typename Z1, typename W1,
|
||||||
typename X2, typename Y2, typename Z2, typename W2,
|
typename X2, typename Y2, typename Z2, typename W2,
|
||||||
typename X3, typename Y3, typename Z3, typename W3>
|
typename X3, typename Y3, typename Z3, typename W3>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
X1 x1, Y1 y1, Z1 z1, W1 w1,
|
X1 x1, Y1 y1, Z1 z1, W1 w1,
|
||||||
X2 x2, Y2 y2, Z2 z2, W2 w2,
|
X2 x2, Y2 y2, Z2 z2, W2 w2,
|
||||||
X3 x3, Y3 y3, Z3 z3, W3 w3);
|
X3 x3, Y3 y3, Z3 z3, W3 w3);
|
||||||
|
|
||||||
template<typename V1, typename V2, typename V3>
|
template<typename V1, typename V2, typename V3>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
vec<4, V1, Q> const& v1,
|
vec<4, V1, Q> const& v1,
|
||||||
vec<4, V2, Q> const& v2,
|
vec<4, V2, Q> const& v2,
|
||||||
vec<4, V3, Q> const& v3);
|
vec<4, V3, Q> const& v3);
|
||||||
@ -67,38 +67,38 @@ namespace glm
|
|||||||
// -- Matrix conversions --
|
// -- Matrix conversions --
|
||||||
|
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 4, U, P> const& m);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<3, 4, U, P> const& m);
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 2, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<2, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 3, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<3, 3, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 4, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<4, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 3, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<2, 3, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 2, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<3, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 4, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<2, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 2, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<4, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 3, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<4, 3, T, Q> const& x);
|
||||||
|
|
||||||
// -- Unary arithmetic operators --
|
// -- Unary arithmetic operators --
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 4, T, Q> & operator=(mat<3, 4, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 4, T, Q> & operator=(mat<3, 4, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 4, T, Q> & operator+=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 4, T, Q> & operator+=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 4, T, Q> & operator+=(mat<3, 4, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 4, T, Q> & operator+=(mat<3, 4, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 4, T, Q> & operator-=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 4, T, Q> & operator-=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 4, T, Q> & operator-=(mat<3, 4, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 4, T, Q> & operator-=(mat<3, 4, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 4, T, Q> & operator*=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 4, T, Q> & operator*=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 4, T, Q> & operator/=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 4, T, Q> & operator/=(U s);
|
||||||
|
|
||||||
// -- Increment and decrement operators --
|
// -- Increment and decrement operators --
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 4, T, Q> & operator++();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 4, T, Q> & operator++();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 4, T, Q> & operator--();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<3, 4, T, Q> & operator--();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 4, T, Q> operator++(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 4, T, Q> operator++(int);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 4, T, Q> operator--(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR mat<3, 4, T, Q> operator--(int);
|
||||||
};
|
};
|
||||||
|
@ -35,15 +35,15 @@ namespace glm
|
|||||||
|
|
||||||
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR mat() GLM_DEFAULT_CTOR;
|
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR mat() GLM_DEFAULT_CTOR;
|
||||||
template<qualifier P>
|
template<qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(mat<4, 2, T, P> const& m);
|
GLM_CTOR_DECL mat(mat<4, 2, T, P> const& m);
|
||||||
|
|
||||||
GLM_FUNC_DECL explicit GLM_CONSTEXPR mat(T scalar);
|
GLM_CTOR_DECL mat(T scalar);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
T x0, T y0,
|
T x0, T y0,
|
||||||
T x1, T y1,
|
T x1, T y1,
|
||||||
T x2, T y2,
|
T x2, T y2,
|
||||||
T x3, T y3);
|
T x3, T y3);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
col_type const& v0,
|
col_type const& v0,
|
||||||
col_type const& v1,
|
col_type const& v1,
|
||||||
col_type const& v2,
|
col_type const& v2,
|
||||||
@ -56,14 +56,14 @@ namespace glm
|
|||||||
typename X1, typename Y1,
|
typename X1, typename Y1,
|
||||||
typename X2, typename Y2,
|
typename X2, typename Y2,
|
||||||
typename X3, typename Y3>
|
typename X3, typename Y3>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
X0 x0, Y0 y0,
|
X0 x0, Y0 y0,
|
||||||
X1 x1, Y1 y1,
|
X1 x1, Y1 y1,
|
||||||
X2 x2, Y2 y2,
|
X2 x2, Y2 y2,
|
||||||
X3 x3, Y3 y3);
|
X3 x3, Y3 y3);
|
||||||
|
|
||||||
template<typename V1, typename V2, typename V3, typename V4>
|
template<typename V1, typename V2, typename V3, typename V4>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
vec<2, V1, Q> const& v1,
|
vec<2, V1, Q> const& v1,
|
||||||
vec<2, V2, Q> const& v2,
|
vec<2, V2, Q> const& v2,
|
||||||
vec<2, V3, Q> const& v3,
|
vec<2, V3, Q> const& v3,
|
||||||
@ -72,38 +72,38 @@ namespace glm
|
|||||||
// -- Matrix conversions --
|
// -- Matrix conversions --
|
||||||
|
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 2, U, P> const& m);
|
GLM_CTOR_DECL mat(mat<4, 2, U, P> const& m);
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 2, T, Q> const& x);
|
GLM_CTOR_DECL mat(mat<2, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 3, T, Q> const& x);
|
GLM_CTOR_DECL mat(mat<3, 3, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 4, T, Q> const& x);
|
GLM_CTOR_DECL mat(mat<4, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 3, T, Q> const& x);
|
GLM_CTOR_DECL mat(mat<2, 3, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 2, T, Q> const& x);
|
GLM_CTOR_DECL mat(mat<3, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 4, T, Q> const& x);
|
GLM_CTOR_DECL mat(mat<2, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 3, T, Q> const& x);
|
GLM_CTOR_DECL mat(mat<4, 3, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 4, T, Q> const& x);
|
GLM_CTOR_DECL mat(mat<3, 4, T, Q> const& x);
|
||||||
|
|
||||||
// -- Unary arithmetic operators --
|
// -- Unary arithmetic operators --
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 2, T, Q> & operator=(mat<4, 2, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 2, T, Q> & operator=(mat<4, 2, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 2, T, Q> & operator+=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 2, T, Q> & operator+=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 2, T, Q> & operator+=(mat<4, 2, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 2, T, Q> & operator+=(mat<4, 2, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 2, T, Q> & operator-=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 2, T, Q> & operator-=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 2, T, Q> & operator-=(mat<4, 2, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 2, T, Q> & operator-=(mat<4, 2, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 2, T, Q> & operator*=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 2, T, Q> & operator*=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 2, T, Q> & operator/=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 2, T, Q> & operator/=(U s);
|
||||||
|
|
||||||
// -- Increment and decrement operators --
|
// -- Increment and decrement operators --
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 2, T, Q> & operator++ ();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 2, T, Q> & operator++ ();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 2, T, Q> & operator-- ();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 2, T, Q> & operator-- ();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 2, T, Q> operator++(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 2, T, Q> operator++(int);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 2, T, Q> operator--(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 2, T, Q> operator--(int);
|
||||||
};
|
};
|
||||||
|
@ -35,15 +35,15 @@ namespace glm
|
|||||||
|
|
||||||
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR mat() GLM_DEFAULT_CTOR;
|
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR mat() GLM_DEFAULT_CTOR;
|
||||||
template<qualifier P>
|
template<qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(mat<4, 3, T, P> const& m);
|
GLM_CTOR_DECL mat(mat<4, 3, T, P> const& m);
|
||||||
|
|
||||||
GLM_FUNC_DECL explicit GLM_CONSTEXPR mat(T s);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(T s);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
T const& x0, T const& y0, T const& z0,
|
T const& x0, T const& y0, T const& z0,
|
||||||
T const& x1, T const& y1, T const& z1,
|
T const& x1, T const& y1, T const& z1,
|
||||||
T const& x2, T const& y2, T const& z2,
|
T const& x2, T const& y2, T const& z2,
|
||||||
T const& x3, T const& y3, T const& z3);
|
T const& x3, T const& y3, T const& z3);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
col_type const& v0,
|
col_type const& v0,
|
||||||
col_type const& v1,
|
col_type const& v1,
|
||||||
col_type const& v2,
|
col_type const& v2,
|
||||||
@ -56,14 +56,14 @@ namespace glm
|
|||||||
typename X2, typename Y2, typename Z2,
|
typename X2, typename Y2, typename Z2,
|
||||||
typename X3, typename Y3, typename Z3,
|
typename X3, typename Y3, typename Z3,
|
||||||
typename X4, typename Y4, typename Z4>
|
typename X4, typename Y4, typename Z4>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
X1 const& x1, Y1 const& y1, Z1 const& z1,
|
X1 const& x1, Y1 const& y1, Z1 const& z1,
|
||||||
X2 const& x2, Y2 const& y2, Z2 const& z2,
|
X2 const& x2, Y2 const& y2, Z2 const& z2,
|
||||||
X3 const& x3, Y3 const& y3, Z3 const& z3,
|
X3 const& x3, Y3 const& y3, Z3 const& z3,
|
||||||
X4 const& x4, Y4 const& y4, Z4 const& z4);
|
X4 const& x4, Y4 const& y4, Z4 const& z4);
|
||||||
|
|
||||||
template<typename V1, typename V2, typename V3, typename V4>
|
template<typename V1, typename V2, typename V3, typename V4>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
vec<3, V1, Q> const& v1,
|
vec<3, V1, Q> const& v1,
|
||||||
vec<3, V2, Q> const& v2,
|
vec<3, V2, Q> const& v2,
|
||||||
vec<3, V3, Q> const& v3,
|
vec<3, V3, Q> const& v3,
|
||||||
@ -72,38 +72,38 @@ namespace glm
|
|||||||
// -- Matrix conversions --
|
// -- Matrix conversions --
|
||||||
|
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 3, U, P> const& m);
|
GLM_CTOR_DECL mat(mat<4, 3, U, P> const& m);
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 2, T, Q> const& x);
|
GLM_CTOR_DECL mat(mat<2, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 3, T, Q> const& x);
|
GLM_CTOR_DECL mat(mat<3, 3, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 4, T, Q> const& x);
|
GLM_CTOR_DECL mat(mat<4, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 3, T, Q> const& x);
|
GLM_CTOR_DECL mat(mat<2, 3, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 2, T, Q> const& x);
|
GLM_CTOR_DECL mat(mat<3, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 4, T, Q> const& x);
|
GLM_CTOR_DECL mat(mat<2, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 2, T, Q> const& x);
|
GLM_CTOR_DECL mat(mat<4, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 4, T, Q> const& x);
|
GLM_CTOR_DECL mat(mat<3, 4, T, Q> const& x);
|
||||||
|
|
||||||
// -- Unary arithmetic operators --
|
// -- Unary arithmetic operators --
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 3, T, Q> & operator=(mat<4, 3, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 3, T, Q> & operator=(mat<4, 3, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 3, T, Q> & operator+=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 3, T, Q> & operator+=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 3, T, Q> & operator+=(mat<4, 3, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 3, T, Q> & operator+=(mat<4, 3, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 3, T, Q> & operator-=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 3, T, Q> & operator-=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 3, T, Q> & operator-=(mat<4, 3, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 3, T, Q> & operator-=(mat<4, 3, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 3, T, Q> & operator*=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 3, T, Q> & operator*=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 3, T, Q> & operator/=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 3, T, Q> & operator/=(U s);
|
||||||
|
|
||||||
// -- Increment and decrement operators --
|
// -- Increment and decrement operators --
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 3, T, Q>& operator++();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 3, T, Q>& operator++();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 3, T, Q>& operator--();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 3, T, Q>& operator--();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 3, T, Q> operator++(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 3, T, Q> operator++(int);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 3, T, Q> operator--(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 3, T, Q> operator--(int);
|
||||||
};
|
};
|
||||||
|
@ -34,15 +34,15 @@ namespace glm
|
|||||||
|
|
||||||
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR mat() GLM_DEFAULT_CTOR;
|
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR mat() GLM_DEFAULT_CTOR;
|
||||||
template<qualifier P>
|
template<qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(mat<4, 4, T, P> const& m);
|
GLM_CTOR_DECL mat(mat<4, 4, T, P> const& m);
|
||||||
|
|
||||||
GLM_FUNC_DECL explicit GLM_CONSTEXPR mat(T s);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(T s);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
T const& x0, T const& y0, T const& z0, T const& w0,
|
T const& x0, T const& y0, T const& z0, T const& w0,
|
||||||
T const& x1, T const& y1, T const& z1, T const& w1,
|
T const& x1, T const& y1, T const& z1, T const& w1,
|
||||||
T const& x2, T const& y2, T const& z2, T const& w2,
|
T const& x2, T const& y2, T const& z2, T const& w2,
|
||||||
T const& x3, T const& y3, T const& z3, T const& w3);
|
T const& x3, T const& y3, T const& z3, T const& w3);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
col_type const& v0,
|
col_type const& v0,
|
||||||
col_type const& v1,
|
col_type const& v1,
|
||||||
col_type const& v2,
|
col_type const& v2,
|
||||||
@ -55,14 +55,14 @@ namespace glm
|
|||||||
typename X2, typename Y2, typename Z2, typename W2,
|
typename X2, typename Y2, typename Z2, typename W2,
|
||||||
typename X3, typename Y3, typename Z3, typename W3,
|
typename X3, typename Y3, typename Z3, typename W3,
|
||||||
typename X4, typename Y4, typename Z4, typename W4>
|
typename X4, typename Y4, typename Z4, typename W4>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
X1 const& x1, Y1 const& y1, Z1 const& z1, W1 const& w1,
|
X1 const& x1, Y1 const& y1, Z1 const& z1, W1 const& w1,
|
||||||
X2 const& x2, Y2 const& y2, Z2 const& z2, W2 const& w2,
|
X2 const& x2, Y2 const& y2, Z2 const& z2, W2 const& w2,
|
||||||
X3 const& x3, Y3 const& y3, Z3 const& z3, W3 const& w3,
|
X3 const& x3, Y3 const& y3, Z3 const& z3, W3 const& w3,
|
||||||
X4 const& x4, Y4 const& y4, Z4 const& z4, W4 const& w4);
|
X4 const& x4, Y4 const& y4, Z4 const& z4, W4 const& w4);
|
||||||
|
|
||||||
template<typename V1, typename V2, typename V3, typename V4>
|
template<typename V1, typename V2, typename V3, typename V4>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat(
|
GLM_CTOR_DECL mat(
|
||||||
vec<4, V1, Q> const& v1,
|
vec<4, V1, Q> const& v1,
|
||||||
vec<4, V2, Q> const& v2,
|
vec<4, V2, Q> const& v2,
|
||||||
vec<4, V3, Q> const& v3,
|
vec<4, V3, Q> const& v3,
|
||||||
@ -71,42 +71,42 @@ namespace glm
|
|||||||
// -- Matrix conversions --
|
// -- Matrix conversions --
|
||||||
|
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 4, U, P> const& m);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<4, 4, U, P> const& m);
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 2, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<2, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 3, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<3, 3, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 3, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<2, 3, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 2, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<3, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<2, 4, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<2, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 2, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<4, 2, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<3, 4, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<3, 4, T, Q> const& x);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR mat(mat<4, 3, T, Q> const& x);
|
GLM_CTOR_DECL GLM_EXPLICIT mat(mat<4, 3, T, Q> const& x);
|
||||||
|
|
||||||
// -- Unary arithmetic operators --
|
// -- Unary arithmetic operators --
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator=(mat<4, 4, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator=(mat<4, 4, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator+=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator+=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator+=(mat<4, 4, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator+=(mat<4, 4, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator-=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator-=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator-=(mat<4, 4, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator-=(mat<4, 4, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator*=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator*=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator*=(mat<4, 4, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator*=(mat<4, 4, U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator/=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator/=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator/=(mat<4, 4, U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator/=(mat<4, 4, U, Q> const& m);
|
||||||
|
|
||||||
// -- Increment and decrement operators --
|
// -- Increment and decrement operators --
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator++();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator++();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator--();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR mat<4, 4, T, Q> & operator--();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 4, T, Q> operator++(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 4, T, Q> operator++(int);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 4, T, Q> operator--(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR mat<4, 4, T, Q> operator--(int);
|
||||||
};
|
};
|
||||||
|
@ -73,16 +73,16 @@ namespace glm
|
|||||||
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR qua() GLM_DEFAULT_CTOR;
|
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR qua() GLM_DEFAULT_CTOR;
|
||||||
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR qua(qua<T, Q> const& q) GLM_DEFAULT;
|
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR qua(qua<T, Q> const& q) GLM_DEFAULT;
|
||||||
template<qualifier P>
|
template<qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR qua(qua<T, P> const& q);
|
GLM_CTOR_DECL qua(qua<T, P> const& q);
|
||||||
|
|
||||||
// -- Explicit basic constructors --
|
// -- Explicit basic constructors --
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR qua(T s, vec<3, T, Q> const& v);
|
GLM_CTOR_DECL qua(T s, vec<3, T, Q> const& v);
|
||||||
|
|
||||||
# ifdef GLM_FORCE_QUAT_DATA_XYZW
|
# ifdef GLM_FORCE_QUAT_DATA_XYZW
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR qua(T x, T y, T z, T w);
|
GLM_CTOR_DECL qua(T x, T y, T z, T w);
|
||||||
# else
|
# else
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR qua(T w, T x, T y, T z);
|
GLM_CTOR_DECL qua(T w, T x, T y, T z);
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
GLM_FUNC_DECL static GLM_CONSTEXPR qua<T, Q> wxyz(T w, T x, T y, T z);
|
GLM_FUNC_DECL static GLM_CONSTEXPR qua<T, Q> wxyz(T w, T x, T y, T z);
|
||||||
@ -90,7 +90,7 @@ namespace glm
|
|||||||
// -- Conversion constructors --
|
// -- Conversion constructors --
|
||||||
|
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT qua(qua<U, P> const& q);
|
GLM_CTOR_DECL GLM_EXPLICIT qua(qua<U, P> const& q);
|
||||||
|
|
||||||
/// Explicit conversion operators
|
/// Explicit conversion operators
|
||||||
# if GLM_HAS_EXPLICIT_CONVERSION_OPERATORS
|
# if GLM_HAS_EXPLICIT_CONVERSION_OPERATORS
|
||||||
@ -104,29 +104,29 @@ namespace glm
|
|||||||
/// @param v A second normalized axis
|
/// @param v A second normalized axis
|
||||||
/// @see gtc_quaternion
|
/// @see gtc_quaternion
|
||||||
/// @see http://lolengine.net/blog/2013/09/18/beautiful-maths-quaternion-from-vectors
|
/// @see http://lolengine.net/blog/2013/09/18/beautiful-maths-quaternion-from-vectors
|
||||||
GLM_FUNC_DECL qua(vec<3, T, Q> const& u, vec<3, T, Q> const& v);
|
GLM_FUNC_DISCARD_DECL qua(vec<3, T, Q> const& u, vec<3, T, Q> const& v);
|
||||||
|
|
||||||
/// Build a quaternion from euler angles (pitch, yaw, roll), in radians.
|
/// Build a quaternion from euler angles (pitch, yaw, roll), in radians.
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT qua(vec<3, T, Q> const& eulerAngles);
|
GLM_CTOR_DECL GLM_EXPLICIT qua(vec<3, T, Q> const& eulerAngles);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT qua(mat<3, 3, T, Q> const& q);
|
GLM_CTOR_DECL GLM_EXPLICIT qua(mat<3, 3, T, Q> const& q);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT qua(mat<4, 4, T, Q> const& q);
|
GLM_CTOR_DECL GLM_EXPLICIT qua(mat<4, 4, T, Q> const& q);
|
||||||
|
|
||||||
// -- Unary arithmetic operators --
|
// -- Unary arithmetic operators --
|
||||||
|
|
||||||
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR qua<T, Q>& operator=(qua<T, Q> const& q) GLM_DEFAULT;
|
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR qua<T, Q>& operator=(qua<T, Q> const& q) GLM_DEFAULT;
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR qua<T, Q>& operator=(qua<U, Q> const& q);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR qua<T, Q>& operator=(qua<U, Q> const& q);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR qua<T, Q>& operator+=(qua<U, Q> const& q);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR qua<T, Q>& operator+=(qua<U, Q> const& q);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR qua<T, Q>& operator-=(qua<U, Q> const& q);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR qua<T, Q>& operator-=(qua<U, Q> const& q);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR qua<T, Q>& operator*=(qua<U, Q> const& q);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR qua<T, Q>& operator*=(qua<U, Q> const& q);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR qua<T, Q>& operator*=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR qua<T, Q>& operator*=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR qua<T, Q>& operator/=(U s);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR qua<T, Q>& operator/=(U s);
|
||||||
};
|
};
|
||||||
|
|
||||||
# if GLM_SILENT_WARNINGS == GLM_ENABLE
|
# if GLM_SILENT_WARNINGS == GLM_ENABLE
|
||||||
|
@ -229,13 +229,13 @@ namespace detail
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename T, qualifier Q>
|
template<typename T, qualifier Q>
|
||||||
GLM_FUNC_QUALIFIER qua<T, Q>::qua(mat<3, 3, T, Q> const& m)
|
GLM_FUNC_QUALIFIER GLM_CONSTEXPR qua<T, Q>::qua(mat<3, 3, T, Q> const& m)
|
||||||
{
|
{
|
||||||
*this = quat_cast(m);
|
*this = quat_cast(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T, qualifier Q>
|
template<typename T, qualifier Q>
|
||||||
GLM_FUNC_QUALIFIER qua<T, Q>::qua(mat<4, 4, T, Q> const& m)
|
GLM_FUNC_QUALIFIER GLM_CONSTEXPR qua<T, Q>::qua(mat<4, 4, T, Q> const& m)
|
||||||
{
|
{
|
||||||
*this = quat_cast(m);
|
*this = quat_cast(m);
|
||||||
}
|
}
|
||||||
|
@ -95,33 +95,33 @@ namespace glm
|
|||||||
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR vec() GLM_DEFAULT_CTOR;
|
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR vec() GLM_DEFAULT_CTOR;
|
||||||
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR vec(vec const& v) GLM_DEFAULT;
|
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR vec(vec const& v) GLM_DEFAULT;
|
||||||
template<qualifier P>
|
template<qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, T, P> const& v);
|
GLM_CTOR_DECL vec(vec<1, T, P> const& v);
|
||||||
|
|
||||||
// -- Explicit basic constructors --
|
// -- Explicit basic constructors --
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR explicit vec(T scalar);
|
GLM_CTOR_DECL explicit vec(T scalar);
|
||||||
|
|
||||||
// -- Conversion vector constructors --
|
// -- Conversion vector constructors --
|
||||||
|
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT vec(vec<2, U, P> const& v);
|
GLM_CTOR_DECL GLM_EXPLICIT vec(vec<2, U, P> const& v);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT vec(vec<3, U, P> const& v);
|
GLM_CTOR_DECL GLM_EXPLICIT vec(vec<3, U, P> const& v);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT vec(vec<4, U, P> const& v);
|
GLM_CTOR_DECL GLM_EXPLICIT vec(vec<4, U, P> const& v);
|
||||||
|
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT vec(vec<1, U, P> const& v);
|
GLM_CTOR_DECL GLM_EXPLICIT vec(vec<1, U, P> const& v);
|
||||||
|
|
||||||
// -- Swizzle constructors --
|
// -- Swizzle constructors --
|
||||||
/*
|
/*
|
||||||
# if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
|
# if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
|
||||||
template<int E0>
|
template<int E0>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(detail::_swizzle<1, T, Q, E0, -1,-2,-3> const& that)
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec(detail::_swizzle<1, T, Q, E0, -1,-2,-3> const& that)
|
||||||
{
|
{
|
||||||
*this = that();
|
*this = that();
|
||||||
}
|
}
|
||||||
@ -132,57 +132,57 @@ namespace glm
|
|||||||
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator=(vec const& v) GLM_DEFAULT;
|
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator=(vec const& v) GLM_DEFAULT;
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator+=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator+=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator+=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator+=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator-=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator-=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator-=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator-=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator*=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator*=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator*=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator*=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator/=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator/=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator/=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator/=(vec<1, U, Q> const& v);
|
||||||
|
|
||||||
// -- Increment and decrement operators --
|
// -- Increment and decrement operators --
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator++();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator++();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator--();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator--();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator++(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator++(int);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator--(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> operator--(int);
|
||||||
|
|
||||||
// -- Unary bit operators --
|
// -- Unary bit operators --
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator%=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator%=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator%=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator%=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator&=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator&=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator&=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator&=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator|=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator|=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator|=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator|=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator^=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator^=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator^=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator^=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator<<=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator<<=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator<<=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator<<=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator>>=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator>>=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<1, T, Q> & operator>>=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<1, T, Q> & operator>>=(vec<1, U, Q> const& v);
|
||||||
};
|
};
|
||||||
|
|
||||||
// -- Unary operators --
|
// -- Unary operators --
|
||||||
|
@ -101,45 +101,45 @@ namespace glm
|
|||||||
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR vec() GLM_DEFAULT_CTOR;
|
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR vec() GLM_DEFAULT_CTOR;
|
||||||
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR vec(vec const& v) GLM_DEFAULT;
|
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR vec(vec const& v) GLM_DEFAULT;
|
||||||
template<qualifier P>
|
template<qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<2, T, P> const& v);
|
GLM_CTOR_DECL vec(vec<2, T, P> const& v);
|
||||||
|
|
||||||
// -- Explicit basic constructors --
|
// -- Explicit basic constructors --
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR explicit vec(T scalar);
|
GLM_CTOR_DECL explicit vec(T scalar);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(T x, T y);
|
GLM_CTOR_DECL vec(T x, T y);
|
||||||
|
|
||||||
// -- Conversion constructors --
|
// -- Conversion constructors --
|
||||||
|
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR explicit vec(vec<1, U, P> const& v);
|
GLM_CTOR_DECL explicit vec(vec<1, U, P> const& v);
|
||||||
|
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B>
|
template<typename A, typename B>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(A x, B y);
|
GLM_CTOR_DECL vec(A x, B y);
|
||||||
template<typename A, typename B>
|
template<typename A, typename B>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, A, Q> const& x, B y);
|
GLM_CTOR_DECL vec(vec<1, A, Q> const& x, B y);
|
||||||
template<typename A, typename B>
|
template<typename A, typename B>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(A x, vec<1, B, Q> const& y);
|
GLM_CTOR_DECL vec(A x, vec<1, B, Q> const& y);
|
||||||
template<typename A, typename B>
|
template<typename A, typename B>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, A, Q> const& x, vec<1, B, Q> const& y);
|
GLM_CTOR_DECL vec(vec<1, A, Q> const& x, vec<1, B, Q> const& y);
|
||||||
|
|
||||||
// -- Conversion vector constructors --
|
// -- Conversion vector constructors --
|
||||||
|
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT vec(vec<3, U, P> const& v);
|
GLM_CTOR_DECL GLM_EXPLICIT vec(vec<3, U, P> const& v);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT vec(vec<4, U, P> const& v);
|
GLM_CTOR_DECL GLM_EXPLICIT vec(vec<4, U, P> const& v);
|
||||||
|
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT vec(vec<2, U, P> const& v);
|
GLM_CTOR_DECL GLM_EXPLICIT vec(vec<2, U, P> const& v);
|
||||||
|
|
||||||
// -- Swizzle constructors --
|
// -- Swizzle constructors --
|
||||||
# if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
|
# if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
|
||||||
template<int E0, int E1>
|
template<int E0, int E1>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(detail::_swizzle<2, T, Q, E0, E1,-1,-2> const& that)
|
GLM_FUNC_DISCARD_DECL vec(detail::_swizzle<2, T, Q, E0, E1,-1,-2> const& that)
|
||||||
{
|
{
|
||||||
*this = that();
|
*this = that();
|
||||||
}
|
}
|
||||||
@ -150,77 +150,77 @@ namespace glm
|
|||||||
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator=(vec const& v) GLM_DEFAULT;
|
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator=(vec const& v) GLM_DEFAULT;
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator=(vec<2, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator=(vec<2, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator+=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator+=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator+=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator+=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator+=(vec<2, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator+=(vec<2, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator-=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator-=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator-=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator-=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator-=(vec<2, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator-=(vec<2, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator*=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator*=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator*=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator*=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator*=(vec<2, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator*=(vec<2, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator/=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator/=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator/=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator/=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator/=(vec<2, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator/=(vec<2, U, Q> const& v);
|
||||||
|
|
||||||
// -- Increment and decrement operators --
|
// -- Increment and decrement operators --
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator++();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator++();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator--();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator--();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator++(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator++(int);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator--(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> operator--(int);
|
||||||
|
|
||||||
// -- Unary bit operators --
|
// -- Unary bit operators --
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator%=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator%=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator%=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator%=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator%=(vec<2, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator%=(vec<2, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator&=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator&=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator&=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator&=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator&=(vec<2, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator&=(vec<2, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator|=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator|=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator|=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator|=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator|=(vec<2, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator|=(vec<2, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator^=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator^=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator^=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator^=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator^=(vec<2, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator^=(vec<2, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator<<=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator<<=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator<<=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator<<=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator<<=(vec<2, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator<<=(vec<2, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator>>=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator>>=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator>>=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator>>=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<2, T, Q> & operator>>=(vec<2, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<2, T, Q> & operator>>=(vec<2, U, Q> const& v);
|
||||||
};
|
};
|
||||||
|
|
||||||
// -- Unary operators --
|
// -- Unary operators --
|
||||||
|
@ -107,74 +107,74 @@ namespace glm
|
|||||||
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR vec() GLM_DEFAULT_CTOR;
|
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR vec() GLM_DEFAULT_CTOR;
|
||||||
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR vec(vec const& v) GLM_DEFAULT;
|
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR vec(vec const& v) GLM_DEFAULT;
|
||||||
template<qualifier P>
|
template<qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<3, T, P> const& v);
|
GLM_CTOR_DECL vec(vec<3, T, P> const& v);
|
||||||
|
|
||||||
// -- Explicit basic constructors --
|
// -- Explicit basic constructors --
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR explicit vec(T scalar);
|
GLM_CTOR_DECL explicit vec(T scalar);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(T a, T b, T c);
|
GLM_CTOR_DECL vec(T a, T b, T c);
|
||||||
|
|
||||||
// -- Conversion scalar constructors --
|
// -- Conversion scalar constructors --
|
||||||
|
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR explicit vec(vec<1, U, P> const& v);
|
GLM_CTOR_DECL explicit vec(vec<1, U, P> const& v);
|
||||||
|
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename X, typename Y, typename Z>
|
template<typename X, typename Y, typename Z>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(X x, Y y, Z z);
|
GLM_CTOR_DECL vec(X x, Y y, Z z);
|
||||||
template<typename X, typename Y, typename Z>
|
template<typename X, typename Y, typename Z>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, Y _y, Z _z);
|
GLM_CTOR_DECL vec(vec<1, X, Q> const& _x, Y _y, Z _z);
|
||||||
template<typename X, typename Y, typename Z>
|
template<typename X, typename Y, typename Z>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, vec<1, Y, Q> const& _y, Z _z);
|
GLM_CTOR_DECL vec(X _x, vec<1, Y, Q> const& _y, Z _z);
|
||||||
template<typename X, typename Y, typename Z>
|
template<typename X, typename Y, typename Z>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _y, Z _z);
|
GLM_CTOR_DECL vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _y, Z _z);
|
||||||
template<typename X, typename Y, typename Z>
|
template<typename X, typename Y, typename Z>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, Y _y, vec<1, Z, Q> const& _z);
|
GLM_CTOR_DECL vec(X _x, Y _y, vec<1, Z, Q> const& _z);
|
||||||
template<typename X, typename Y, typename Z>
|
template<typename X, typename Y, typename Z>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, Y _y, vec<1, Z, Q> const& _z);
|
GLM_CTOR_DECL vec(vec<1, X, Q> const& _x, Y _y, vec<1, Z, Q> const& _z);
|
||||||
template<typename X, typename Y, typename Z>
|
template<typename X, typename Y, typename Z>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, vec<1, Y, Q> const& _y, vec<1, Z, Q> const& _z);
|
GLM_CTOR_DECL vec(X _x, vec<1, Y, Q> const& _y, vec<1, Z, Q> const& _z);
|
||||||
template<typename X, typename Y, typename Z>
|
template<typename X, typename Y, typename Z>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _y, vec<1, Z, Q> const& _z);
|
GLM_CTOR_DECL vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _y, vec<1, Z, Q> const& _z);
|
||||||
|
|
||||||
// -- Conversion vector constructors --
|
// -- Conversion vector constructors --
|
||||||
|
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B, qualifier P>
|
template<typename A, typename B, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<2, A, P> const& _xy, B _z);
|
GLM_CTOR_DECL vec(vec<2, A, P> const& _xy, B _z);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B, qualifier P>
|
template<typename A, typename B, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<2, A, P> const& _xy, vec<1, B, P> const& _z);
|
GLM_CTOR_DECL vec(vec<2, A, P> const& _xy, vec<1, B, P> const& _z);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B, qualifier P>
|
template<typename A, typename B, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(A _x, vec<2, B, P> const& _yz);
|
GLM_CTOR_DECL vec(A _x, vec<2, B, P> const& _yz);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B, qualifier P>
|
template<typename A, typename B, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, A, P> const& _x, vec<2, B, P> const& _yz);
|
GLM_CTOR_DECL vec(vec<1, A, P> const& _x, vec<2, B, P> const& _yz);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT vec(vec<4, U, P> const& v);
|
GLM_CTOR_DECL GLM_EXPLICIT vec(vec<4, U, P> const& v);
|
||||||
|
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT vec(vec<3, U, P> const& v);
|
GLM_CTOR_DECL GLM_EXPLICIT vec(vec<3, U, P> const& v);
|
||||||
|
|
||||||
// -- Swizzle constructors --
|
// -- Swizzle constructors --
|
||||||
# if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
|
# if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
|
||||||
template<int E0, int E1, int E2>
|
template<int E0, int E1, int E2>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(detail::_swizzle<3, T, Q, E0, E1, E2, -1> const& that)
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec(detail::_swizzle<3, T, Q, E0, E1, E2, -1> const& that)
|
||||||
{
|
{
|
||||||
*this = that();
|
*this = that();
|
||||||
}
|
}
|
||||||
|
|
||||||
template<int E0, int E1>
|
template<int E0, int E1>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(detail::_swizzle<2, T, Q, E0, E1, -1, -2> const& v, T const& scalar)
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec(detail::_swizzle<2, T, Q, E0, E1, -1, -2> const& v, T const& scalar)
|
||||||
{
|
{
|
||||||
*this = vec(v(), scalar);
|
*this = vec(v(), scalar);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<int E0, int E1>
|
template<int E0, int E1>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(T const& scalar, detail::_swizzle<2, T, Q, E0, E1, -1, -2> const& v)
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec(T const& scalar, detail::_swizzle<2, T, Q, E0, E1, -1, -2> const& v)
|
||||||
{
|
{
|
||||||
*this = vec(scalar, v());
|
*this = vec(scalar, v());
|
||||||
}
|
}
|
||||||
@ -185,77 +185,77 @@ namespace glm
|
|||||||
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q>& operator=(vec<3, T, Q> const& v) GLM_DEFAULT;
|
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q>& operator=(vec<3, T, Q> const& v) GLM_DEFAULT;
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator=(vec<3, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator=(vec<3, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator+=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator+=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator+=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator+=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator+=(vec<3, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator+=(vec<3, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator-=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator-=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator-=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator-=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator-=(vec<3, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator-=(vec<3, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator*=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator*=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator*=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator*=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator*=(vec<3, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator*=(vec<3, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator/=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator/=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator/=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator/=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator/=(vec<3, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator/=(vec<3, U, Q> const& v);
|
||||||
|
|
||||||
// -- Increment and decrement operators --
|
// -- Increment and decrement operators --
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator++();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator++();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator--();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator--();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator++(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator++(int);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator--(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> operator--(int);
|
||||||
|
|
||||||
// -- Unary bit operators --
|
// -- Unary bit operators --
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator%=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator%=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator%=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator%=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator%=(vec<3, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator%=(vec<3, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator&=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator&=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator&=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator&=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator&=(vec<3, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator&=(vec<3, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator|=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator|=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator|=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator|=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator|=(vec<3, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator|=(vec<3, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator^=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator^=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator^=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator^=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator^=(vec<3, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator^=(vec<3, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator<<=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator<<=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator<<=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator<<=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator<<=(vec<3, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator<<=(vec<3, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator>>=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator>>=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator>>=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator>>=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<3, T, Q> & operator>>=(vec<3, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<3, T, Q> & operator>>=(vec<3, U, Q> const& v);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -105,148 +105,148 @@ namespace glm
|
|||||||
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR vec() GLM_DEFAULT_CTOR;
|
GLM_DEFAULTED_DEFAULT_CTOR_DECL GLM_CONSTEXPR vec() GLM_DEFAULT_CTOR;
|
||||||
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR vec(vec<4, T, Q> const& v) GLM_DEFAULT;
|
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR vec(vec<4, T, Q> const& v) GLM_DEFAULT;
|
||||||
template<qualifier P>
|
template<qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<4, T, P> const& v);
|
GLM_CTOR_DECL vec(vec<4, T, P> const& v);
|
||||||
|
|
||||||
// -- Explicit basic constructors --
|
// -- Explicit basic constructors --
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR explicit vec(T scalar);
|
GLM_CTOR_DECL explicit vec(T scalar);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(T x, T y, T z, T w);
|
GLM_CTOR_DECL vec(T x, T y, T z, T w);
|
||||||
|
|
||||||
// -- Conversion scalar constructors --
|
// -- Conversion scalar constructors --
|
||||||
|
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR explicit vec(vec<1, U, P> const& v);
|
GLM_CTOR_DECL explicit vec(vec<1, U, P> const& v);
|
||||||
|
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename X, typename Y, typename Z, typename W>
|
template<typename X, typename Y, typename Z, typename W>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, Y _y, Z _z, W _w);
|
GLM_CTOR_DECL vec(X _x, Y _y, Z _z, W _w);
|
||||||
template<typename X, typename Y, typename Z, typename W>
|
template<typename X, typename Y, typename Z, typename W>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, Y _y, Z _z, W _w);
|
GLM_CTOR_DECL vec(vec<1, X, Q> const& _x, Y _y, Z _z, W _w);
|
||||||
template<typename X, typename Y, typename Z, typename W>
|
template<typename X, typename Y, typename Z, typename W>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, vec<1, Y, Q> const& _y, Z _z, W _w);
|
GLM_CTOR_DECL vec(X _x, vec<1, Y, Q> const& _y, Z _z, W _w);
|
||||||
template<typename X, typename Y, typename Z, typename W>
|
template<typename X, typename Y, typename Z, typename W>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _y, Z _z, W _w);
|
GLM_CTOR_DECL vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _y, Z _z, W _w);
|
||||||
template<typename X, typename Y, typename Z, typename W>
|
template<typename X, typename Y, typename Z, typename W>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, Y _y, vec<1, Z, Q> const& _z, W _w);
|
GLM_CTOR_DECL vec(X _x, Y _y, vec<1, Z, Q> const& _z, W _w);
|
||||||
template<typename X, typename Y, typename Z, typename W>
|
template<typename X, typename Y, typename Z, typename W>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, Y _y, vec<1, Z, Q> const& _z, W _w);
|
GLM_CTOR_DECL vec(vec<1, X, Q> const& _x, Y _y, vec<1, Z, Q> const& _z, W _w);
|
||||||
template<typename X, typename Y, typename Z, typename W>
|
template<typename X, typename Y, typename Z, typename W>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, vec<1, Y, Q> const& _y, vec<1, Z, Q> const& _z, W _w);
|
GLM_CTOR_DECL vec(X _x, vec<1, Y, Q> const& _y, vec<1, Z, Q> const& _z, W _w);
|
||||||
template<typename X, typename Y, typename Z, typename W>
|
template<typename X, typename Y, typename Z, typename W>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _y, vec<1, Z, Q> const& _z, W _w);
|
GLM_CTOR_DECL vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _y, vec<1, Z, Q> const& _z, W _w);
|
||||||
template<typename X, typename Y, typename Z, typename W>
|
template<typename X, typename Y, typename Z, typename W>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, Y _y, Z _z, vec<1, W, Q> const& _w);
|
GLM_CTOR_DECL vec(vec<1, X, Q> const& _x, Y _y, Z _z, vec<1, W, Q> const& _w);
|
||||||
template<typename X, typename Y, typename Z, typename W>
|
template<typename X, typename Y, typename Z, typename W>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, vec<1, Y, Q> const& _y, Z _z, vec<1, W, Q> const& _w);
|
GLM_CTOR_DECL vec(X _x, vec<1, Y, Q> const& _y, Z _z, vec<1, W, Q> const& _w);
|
||||||
template<typename X, typename Y, typename Z, typename W>
|
template<typename X, typename Y, typename Z, typename W>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _y, Z _z, vec<1, W, Q> const& _w);
|
GLM_CTOR_DECL vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _y, Z _z, vec<1, W, Q> const& _w);
|
||||||
template<typename X, typename Y, typename Z, typename W>
|
template<typename X, typename Y, typename Z, typename W>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, Y _y, vec<1, Z, Q> const& _z, vec<1, W, Q> const& _w);
|
GLM_CTOR_DECL vec(X _x, Y _y, vec<1, Z, Q> const& _z, vec<1, W, Q> const& _w);
|
||||||
template<typename X, typename Y, typename Z, typename W>
|
template<typename X, typename Y, typename Z, typename W>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, Y _y, vec<1, Z, Q> const& _z, vec<1, W, Q> const& _w);
|
GLM_CTOR_DECL vec(vec<1, X, Q> const& _x, Y _y, vec<1, Z, Q> const& _z, vec<1, W, Q> const& _w);
|
||||||
template<typename X, typename Y, typename Z, typename W>
|
template<typename X, typename Y, typename Z, typename W>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(X _x, vec<1, Y, Q> const& _y, vec<1, Z, Q> const& _z, vec<1, W, Q> const& _w);
|
GLM_CTOR_DECL vec(X _x, vec<1, Y, Q> const& _y, vec<1, Z, Q> const& _z, vec<1, W, Q> const& _w);
|
||||||
template<typename X, typename Y, typename Z, typename W>
|
template<typename X, typename Y, typename Z, typename W>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _y, vec<1, Z, Q> const& _z, vec<1, W, Q> const& _w);
|
GLM_CTOR_DECL vec(vec<1, X, Q> const& _x, vec<1, Y, Q> const& _y, vec<1, Z, Q> const& _z, vec<1, W, Q> const& _w);
|
||||||
|
|
||||||
// -- Conversion vector constructors --
|
// -- Conversion vector constructors --
|
||||||
|
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B, typename C, qualifier P>
|
template<typename A, typename B, typename C, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<2, A, P> const& _xy, B _z, C _w);
|
GLM_CTOR_DECL vec(vec<2, A, P> const& _xy, B _z, C _w);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B, typename C, qualifier P>
|
template<typename A, typename B, typename C, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<2, A, P> const& _xy, vec<1, B, P> const& _z, C _w);
|
GLM_CTOR_DECL vec(vec<2, A, P> const& _xy, vec<1, B, P> const& _z, C _w);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B, typename C, qualifier P>
|
template<typename A, typename B, typename C, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<2, A, P> const& _xy, B _z, vec<1, C, P> const& _w);
|
GLM_CTOR_DECL vec(vec<2, A, P> const& _xy, B _z, vec<1, C, P> const& _w);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B, typename C, qualifier P>
|
template<typename A, typename B, typename C, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<2, A, P> const& _xy, vec<1, B, P> const& _z, vec<1, C, P> const& _w);
|
GLM_CTOR_DECL vec(vec<2, A, P> const& _xy, vec<1, B, P> const& _z, vec<1, C, P> const& _w);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B, typename C, qualifier P>
|
template<typename A, typename B, typename C, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(A _x, vec<2, B, P> const& _yz, C _w);
|
GLM_CTOR_DECL vec(A _x, vec<2, B, P> const& _yz, C _w);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B, typename C, qualifier P>
|
template<typename A, typename B, typename C, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, A, P> const& _x, vec<2, B, P> const& _yz, C _w);
|
GLM_CTOR_DECL vec(vec<1, A, P> const& _x, vec<2, B, P> const& _yz, C _w);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B, typename C, qualifier P>
|
template<typename A, typename B, typename C, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(A _x, vec<2, B, P> const& _yz, vec<1, C, P> const& _w);
|
GLM_CTOR_DECL vec(A _x, vec<2, B, P> const& _yz, vec<1, C, P> const& _w);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B, typename C, qualifier P>
|
template<typename A, typename B, typename C, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, A, P> const& _x, vec<2, B, P> const& _yz, vec<1, C, P> const& _w);
|
GLM_CTOR_DECL vec(vec<1, A, P> const& _x, vec<2, B, P> const& _yz, vec<1, C, P> const& _w);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B, typename C, qualifier P>
|
template<typename A, typename B, typename C, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(A _x, B _y, vec<2, C, P> const& _zw);
|
GLM_CTOR_DECL vec(A _x, B _y, vec<2, C, P> const& _zw);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B, typename C, qualifier P>
|
template<typename A, typename B, typename C, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, A, P> const& _x, B _y, vec<2, C, P> const& _zw);
|
GLM_CTOR_DECL vec(vec<1, A, P> const& _x, B _y, vec<2, C, P> const& _zw);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B, typename C, qualifier P>
|
template<typename A, typename B, typename C, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(A _x, vec<1, B, P> const& _y, vec<2, C, P> const& _zw);
|
GLM_CTOR_DECL vec(A _x, vec<1, B, P> const& _y, vec<2, C, P> const& _zw);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B, typename C, qualifier P>
|
template<typename A, typename B, typename C, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, A, P> const& _x, vec<1, B, P> const& _y, vec<2, C, P> const& _zw);
|
GLM_CTOR_DECL vec(vec<1, A, P> const& _x, vec<1, B, P> const& _y, vec<2, C, P> const& _zw);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B, qualifier P>
|
template<typename A, typename B, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<3, A, P> const& _xyz, B _w);
|
GLM_CTOR_DECL vec(vec<3, A, P> const& _xyz, B _w);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B, qualifier P>
|
template<typename A, typename B, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<3, A, P> const& _xyz, vec<1, B, P> const& _w);
|
GLM_CTOR_DECL vec(vec<3, A, P> const& _xyz, vec<1, B, P> const& _w);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B, qualifier P>
|
template<typename A, typename B, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(A _x, vec<3, B, P> const& _yzw);
|
GLM_CTOR_DECL vec(A _x, vec<3, B, P> const& _yzw);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B, qualifier P>
|
template<typename A, typename B, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<1, A, P> const& _x, vec<3, B, P> const& _yzw);
|
GLM_CTOR_DECL vec(vec<1, A, P> const& _x, vec<3, B, P> const& _yzw);
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename A, typename B, qualifier P>
|
template<typename A, typename B, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(vec<2, A, P> const& _xy, vec<2, B, P> const& _zw);
|
GLM_CTOR_DECL vec(vec<2, A, P> const& _xy, vec<2, B, P> const& _zw);
|
||||||
|
|
||||||
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
/// Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT vec(vec<4, U, P> const& v);
|
GLM_CTOR_DECL GLM_EXPLICIT vec(vec<4, U, P> const& v);
|
||||||
|
|
||||||
// -- Swizzle constructors --
|
// -- Swizzle constructors --
|
||||||
# if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
|
# if GLM_CONFIG_SWIZZLE == GLM_SWIZZLE_OPERATOR
|
||||||
template<int E0, int E1, int E2, int E3>
|
template<int E0, int E1, int E2, int E3>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(detail::_swizzle<4, T, Q, E0, E1, E2, E3> const& that)
|
GLM_FUNC_DISCARD_DECL vec(detail::_swizzle<4, T, Q, E0, E1, E2, E3> const& that)
|
||||||
{
|
{
|
||||||
*this = that();
|
*this = that();
|
||||||
}
|
}
|
||||||
|
|
||||||
template<int E0, int E1, int F0, int F1>
|
template<int E0, int E1, int F0, int F1>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(detail::_swizzle<2, T, Q, E0, E1, -1, -2> const& v, detail::_swizzle<2, T, Q, F0, F1, -1, -2> const& u)
|
GLM_FUNC_DISCARD_DECL vec(detail::_swizzle<2, T, Q, E0, E1, -1, -2> const& v, detail::_swizzle<2, T, Q, F0, F1, -1, -2> const& u)
|
||||||
{
|
{
|
||||||
*this = vec<4, T, Q>(v(), u());
|
*this = vec<4, T, Q>(v(), u());
|
||||||
}
|
}
|
||||||
|
|
||||||
template<int E0, int E1>
|
template<int E0, int E1>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(T const& x, T const& y, detail::_swizzle<2, T, Q, E0, E1, -1, -2> const& v)
|
GLM_FUNC_DISCARD_DECL vec(T const& x, T const& y, detail::_swizzle<2, T, Q, E0, E1, -1, -2> const& v)
|
||||||
{
|
{
|
||||||
*this = vec<4, T, Q>(x, y, v());
|
*this = vec<4, T, Q>(x, y, v());
|
||||||
}
|
}
|
||||||
|
|
||||||
template<int E0, int E1>
|
template<int E0, int E1>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(T const& x, detail::_swizzle<2, T, Q, E0, E1, -1, -2> const& v, T const& w)
|
GLM_FUNC_DISCARD_DECL vec(T const& x, detail::_swizzle<2, T, Q, E0, E1, -1, -2> const& v, T const& w)
|
||||||
{
|
{
|
||||||
*this = vec<4, T, Q>(x, v(), w);
|
*this = vec<4, T, Q>(x, v(), w);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<int E0, int E1>
|
template<int E0, int E1>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(detail::_swizzle<2, T, Q, E0, E1, -1, -2> const& v, T const& z, T const& w)
|
GLM_FUNC_DISCARD_DECL vec(detail::_swizzle<2, T, Q, E0, E1, -1, -2> const& v, T const& z, T const& w)
|
||||||
{
|
{
|
||||||
*this = vec<4, T, Q>(v(), z, w);
|
*this = vec<4, T, Q>(v(), z, w);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<int E0, int E1, int E2>
|
template<int E0, int E1, int E2>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(detail::_swizzle<3, T, Q, E0, E1, E2, 3> const& v, T const& w)
|
GLM_FUNC_DISCARD_DECL vec(detail::_swizzle<3, T, Q, E0, E1, E2, 3> const& v, T const& w)
|
||||||
{
|
{
|
||||||
*this = vec<4, T, Q>(v(), w);
|
*this = vec<4, T, Q>(v(), w);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<int E0, int E1, int E2>
|
template<int E0, int E1, int E2>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec(T const& x, detail::_swizzle<3, T, Q, E0, E1, E2, 3> const& v)
|
GLM_FUNC_DISCARD_DECL vec(T const& x, detail::_swizzle<3, T, Q, E0, E1, E2, 3> const& v)
|
||||||
{
|
{
|
||||||
*this = vec<4, T, Q>(x, v());
|
*this = vec<4, T, Q>(x, v());
|
||||||
}
|
}
|
||||||
@ -257,36 +257,36 @@ namespace glm
|
|||||||
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator=(vec<4, T, Q> const& v) GLM_DEFAULT;
|
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator=(vec<4, T, Q> const& v) GLM_DEFAULT;
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator=(vec<4, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<4, T, Q>& operator=(vec<4, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator+=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<4, T, Q>& operator+=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator+=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<4, T, Q>& operator+=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator+=(vec<4, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<4, T, Q>& operator+=(vec<4, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator-=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<4, T, Q>& operator-=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator-=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<4, T, Q>& operator-=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator-=(vec<4, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<4, T, Q>& operator-=(vec<4, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator*=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<4, T, Q>& operator*=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator*=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<4, T, Q>& operator*=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator*=(vec<4, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<4, T, Q>& operator*=(vec<4, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator/=(U scalar);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<4, T, Q>& operator/=(U scalar);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator/=(vec<1, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<4, T, Q>& operator/=(vec<1, U, Q> const& v);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q>& operator/=(vec<4, U, Q> const& v);
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<4, T, Q>& operator/=(vec<4, U, Q> const& v);
|
||||||
|
|
||||||
// -- Increment and decrement operators --
|
// -- Increment and decrement operators --
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator++();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<4, T, Q> & operator++();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> & operator--();
|
GLM_FUNC_DISCARD_DECL GLM_CONSTEXPR vec<4, T, Q> & operator--();
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator++(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator++(int);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator--(int);
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<4, T, Q> operator--(int);
|
||||||
|
|
||||||
|
@ -34,8 +34,8 @@ namespace glm
|
|||||||
|
|
||||||
/// Returns the log2 of x for integer values. Useful to compute mipmap count from the texture size.
|
/// Returns the log2 of x for integer values. Useful to compute mipmap count from the texture size.
|
||||||
/// @see gtc_integer
|
/// @see gtc_integer
|
||||||
template<typename genIUType>
|
template<length_t L, typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL genIUType log2(genIUType x);
|
GLM_FUNC_DECL vec<L, T, Q> log2(vec<L, T, Q> const& v);
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
} //namespace glm
|
} //namespace glm
|
||||||
|
@ -57,32 +57,32 @@ namespace glm
|
|||||||
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR tdualquat() GLM_DEFAULT;
|
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR tdualquat() GLM_DEFAULT;
|
||||||
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR tdualquat(tdualquat<T, Q> const& d) GLM_DEFAULT;
|
GLM_DEFAULTED_FUNC_DECL GLM_CONSTEXPR tdualquat(tdualquat<T, Q> const& d) GLM_DEFAULT;
|
||||||
template<qualifier P>
|
template<qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR tdualquat(tdualquat<T, P> const& d);
|
GLM_CTOR_DECL tdualquat(tdualquat<T, P> const& d);
|
||||||
|
|
||||||
// -- Explicit basic constructors --
|
// -- Explicit basic constructors --
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR tdualquat(qua<T, Q> const& real);
|
GLM_CTOR_DECL tdualquat(qua<T, Q> const& real);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR tdualquat(qua<T, Q> const& orientation, vec<3, T, Q> const& translation);
|
GLM_CTOR_DECL tdualquat(qua<T, Q> const& orientation, vec<3, T, Q> const& translation);
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR tdualquat(qua<T, Q> const& real, qua<T, Q> const& dual);
|
GLM_CTOR_DECL tdualquat(qua<T, Q> const& real, qua<T, Q> const& dual);
|
||||||
|
|
||||||
// -- Conversion constructors --
|
// -- Conversion constructors --
|
||||||
|
|
||||||
template<typename U, qualifier P>
|
template<typename U, qualifier P>
|
||||||
GLM_FUNC_DECL GLM_CONSTEXPR GLM_EXPLICIT tdualquat(tdualquat<U, P> const& q);
|
GLM_CTOR_DECL GLM_EXPLICIT tdualquat(tdualquat<U, P> const& q);
|
||||||
|
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR tdualquat(mat<2, 4, T, Q> const& holder_mat);
|
GLM_CTOR_DECL GLM_EXPLICIT tdualquat(mat<2, 4, T, Q> const& holder_mat);
|
||||||
GLM_FUNC_DECL GLM_EXPLICIT GLM_CONSTEXPR tdualquat(mat<3, 4, T, Q> const& aug_mat);
|
GLM_CTOR_DECL GLM_EXPLICIT tdualquat(mat<3, 4, T, Q> const& aug_mat);
|
||||||
|
|
||||||
// -- Unary arithmetic operators --
|
// -- Unary arithmetic operators --
|
||||||
|
|
||||||
GLM_DEFAULTED_FUNC_DECL tdualquat<T, Q> & operator=(tdualquat<T, Q> const& m) GLM_DEFAULT;
|
GLM_DEFAULTED_FUNC_DECL tdualquat<T, Q> & operator=(tdualquat<T, Q> const& m) GLM_DEFAULT;
|
||||||
|
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL tdualquat<T, Q> & operator=(tdualquat<U, Q> const& m);
|
GLM_FUNC_DISCARD_DECL tdualquat<T, Q> & operator=(tdualquat<U, Q> const& m);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL tdualquat<T, Q> & operator*=(U s);
|
GLM_FUNC_DISCARD_DECL tdualquat<T, Q> & operator*=(U s);
|
||||||
template<typename U>
|
template<typename U>
|
||||||
GLM_FUNC_DECL tdualquat<T, Q> & operator/=(U s);
|
GLM_FUNC_DISCARD_DECL tdualquat<T, Q> & operator/=(U s);
|
||||||
};
|
};
|
||||||
|
|
||||||
// -- Unary bit operators --
|
// -- Unary bit operators --
|
||||||
|
@ -234,7 +234,7 @@ namespace glm
|
|||||||
/// Extracts the (X * Y * Z) Euler angles from the rotation matrix M
|
/// Extracts the (X * Y * Z) Euler angles from the rotation matrix M
|
||||||
/// @see gtx_euler_angles
|
/// @see gtx_euler_angles
|
||||||
template<typename T>
|
template<typename T>
|
||||||
GLM_FUNC_DECL void extractEulerAngleXYZ(mat<4, 4, T, defaultp> const& M,
|
GLM_FUNC_DISCARD_DECL void extractEulerAngleXYZ(mat<4, 4, T, defaultp> const& M,
|
||||||
T & t1,
|
T & t1,
|
||||||
T & t2,
|
T & t2,
|
||||||
T & t3);
|
T & t3);
|
||||||
@ -242,7 +242,7 @@ namespace glm
|
|||||||
/// Extracts the (Y * X * Z) Euler angles from the rotation matrix M
|
/// Extracts the (Y * X * Z) Euler angles from the rotation matrix M
|
||||||
/// @see gtx_euler_angles
|
/// @see gtx_euler_angles
|
||||||
template <typename T>
|
template <typename T>
|
||||||
GLM_FUNC_DECL void extractEulerAngleYXZ(mat<4, 4, T, defaultp> const & M,
|
GLM_FUNC_DISCARD_DECL void extractEulerAngleYXZ(mat<4, 4, T, defaultp> const & M,
|
||||||
T & t1,
|
T & t1,
|
||||||
T & t2,
|
T & t2,
|
||||||
T & t3);
|
T & t3);
|
||||||
@ -250,7 +250,7 @@ namespace glm
|
|||||||
/// Extracts the (X * Z * X) Euler angles from the rotation matrix M
|
/// Extracts the (X * Z * X) Euler angles from the rotation matrix M
|
||||||
/// @see gtx_euler_angles
|
/// @see gtx_euler_angles
|
||||||
template <typename T>
|
template <typename T>
|
||||||
GLM_FUNC_DECL void extractEulerAngleXZX(mat<4, 4, T, defaultp> const & M,
|
GLM_FUNC_DISCARD_DECL void extractEulerAngleXZX(mat<4, 4, T, defaultp> const & M,
|
||||||
T & t1,
|
T & t1,
|
||||||
T & t2,
|
T & t2,
|
||||||
T & t3);
|
T & t3);
|
||||||
@ -258,7 +258,7 @@ namespace glm
|
|||||||
/// Extracts the (X * Y * X) Euler angles from the rotation matrix M
|
/// Extracts the (X * Y * X) Euler angles from the rotation matrix M
|
||||||
/// @see gtx_euler_angles
|
/// @see gtx_euler_angles
|
||||||
template <typename T>
|
template <typename T>
|
||||||
GLM_FUNC_DECL void extractEulerAngleXYX(mat<4, 4, T, defaultp> const & M,
|
GLM_FUNC_DISCARD_DECL void extractEulerAngleXYX(mat<4, 4, T, defaultp> const & M,
|
||||||
T & t1,
|
T & t1,
|
||||||
T & t2,
|
T & t2,
|
||||||
T & t3);
|
T & t3);
|
||||||
@ -266,7 +266,7 @@ namespace glm
|
|||||||
/// Extracts the (Y * X * Y) Euler angles from the rotation matrix M
|
/// Extracts the (Y * X * Y) Euler angles from the rotation matrix M
|
||||||
/// @see gtx_euler_angles
|
/// @see gtx_euler_angles
|
||||||
template <typename T>
|
template <typename T>
|
||||||
GLM_FUNC_DECL void extractEulerAngleYXY(mat<4, 4, T, defaultp> const & M,
|
GLM_FUNC_DISCARD_DECL void extractEulerAngleYXY(mat<4, 4, T, defaultp> const & M,
|
||||||
T & t1,
|
T & t1,
|
||||||
T & t2,
|
T & t2,
|
||||||
T & t3);
|
T & t3);
|
||||||
@ -274,7 +274,7 @@ namespace glm
|
|||||||
/// Extracts the (Y * Z * Y) Euler angles from the rotation matrix M
|
/// Extracts the (Y * Z * Y) Euler angles from the rotation matrix M
|
||||||
/// @see gtx_euler_angles
|
/// @see gtx_euler_angles
|
||||||
template <typename T>
|
template <typename T>
|
||||||
GLM_FUNC_DECL void extractEulerAngleYZY(mat<4, 4, T, defaultp> const & M,
|
GLM_FUNC_DISCARD_DECL void extractEulerAngleYZY(mat<4, 4, T, defaultp> const & M,
|
||||||
T & t1,
|
T & t1,
|
||||||
T & t2,
|
T & t2,
|
||||||
T & t3);
|
T & t3);
|
||||||
@ -282,7 +282,7 @@ namespace glm
|
|||||||
/// Extracts the (Z * Y * Z) Euler angles from the rotation matrix M
|
/// Extracts the (Z * Y * Z) Euler angles from the rotation matrix M
|
||||||
/// @see gtx_euler_angles
|
/// @see gtx_euler_angles
|
||||||
template <typename T>
|
template <typename T>
|
||||||
GLM_FUNC_DECL void extractEulerAngleZYZ(mat<4, 4, T, defaultp> const & M,
|
GLM_FUNC_DISCARD_DECL void extractEulerAngleZYZ(mat<4, 4, T, defaultp> const & M,
|
||||||
T & t1,
|
T & t1,
|
||||||
T & t2,
|
T & t2,
|
||||||
T & t3);
|
T & t3);
|
||||||
@ -290,7 +290,7 @@ namespace glm
|
|||||||
/// Extracts the (Z * X * Z) Euler angles from the rotation matrix M
|
/// Extracts the (Z * X * Z) Euler angles from the rotation matrix M
|
||||||
/// @see gtx_euler_angles
|
/// @see gtx_euler_angles
|
||||||
template <typename T>
|
template <typename T>
|
||||||
GLM_FUNC_DECL void extractEulerAngleZXZ(mat<4, 4, T, defaultp> const & M,
|
GLM_FUNC_DISCARD_DECL void extractEulerAngleZXZ(mat<4, 4, T, defaultp> const & M,
|
||||||
T & t1,
|
T & t1,
|
||||||
T & t2,
|
T & t2,
|
||||||
T & t3);
|
T & t3);
|
||||||
@ -298,7 +298,7 @@ namespace glm
|
|||||||
/// Extracts the (X * Z * Y) Euler angles from the rotation matrix M
|
/// Extracts the (X * Z * Y) Euler angles from the rotation matrix M
|
||||||
/// @see gtx_euler_angles
|
/// @see gtx_euler_angles
|
||||||
template <typename T>
|
template <typename T>
|
||||||
GLM_FUNC_DECL void extractEulerAngleXZY(mat<4, 4, T, defaultp> const & M,
|
GLM_FUNC_DISCARD_DECL void extractEulerAngleXZY(mat<4, 4, T, defaultp> const & M,
|
||||||
T & t1,
|
T & t1,
|
||||||
T & t2,
|
T & t2,
|
||||||
T & t3);
|
T & t3);
|
||||||
@ -306,7 +306,7 @@ namespace glm
|
|||||||
/// Extracts the (Y * Z * X) Euler angles from the rotation matrix M
|
/// Extracts the (Y * Z * X) Euler angles from the rotation matrix M
|
||||||
/// @see gtx_euler_angles
|
/// @see gtx_euler_angles
|
||||||
template <typename T>
|
template <typename T>
|
||||||
GLM_FUNC_DECL void extractEulerAngleYZX(mat<4, 4, T, defaultp> const & M,
|
GLM_FUNC_DISCARD_DECL void extractEulerAngleYZX(mat<4, 4, T, defaultp> const & M,
|
||||||
T & t1,
|
T & t1,
|
||||||
T & t2,
|
T & t2,
|
||||||
T & t3);
|
T & t3);
|
||||||
@ -314,7 +314,7 @@ namespace glm
|
|||||||
/// Extracts the (Z * Y * X) Euler angles from the rotation matrix M
|
/// Extracts the (Z * Y * X) Euler angles from the rotation matrix M
|
||||||
/// @see gtx_euler_angles
|
/// @see gtx_euler_angles
|
||||||
template <typename T>
|
template <typename T>
|
||||||
GLM_FUNC_DECL void extractEulerAngleZYX(mat<4, 4, T, defaultp> const & M,
|
GLM_FUNC_DISCARD_DECL void extractEulerAngleZYX(mat<4, 4, T, defaultp> const & M,
|
||||||
T & t1,
|
T & t1,
|
||||||
T & t2,
|
T & t2,
|
||||||
T & t3);
|
T & t3);
|
||||||
@ -322,7 +322,7 @@ namespace glm
|
|||||||
/// Extracts the (Z * X * Y) Euler angles from the rotation matrix M
|
/// Extracts the (Z * X * Y) Euler angles from the rotation matrix M
|
||||||
/// @see gtx_euler_angles
|
/// @see gtx_euler_angles
|
||||||
template <typename T>
|
template <typename T>
|
||||||
GLM_FUNC_DECL void extractEulerAngleZXY(mat<4, 4, T, defaultp> const & M,
|
GLM_FUNC_DISCARD_DECL void extractEulerAngleZXY(mat<4, 4, T, defaultp> const & M,
|
||||||
T & t1,
|
T & t1,
|
||||||
T & t2,
|
T & t2,
|
||||||
T & t3);
|
T & t3);
|
||||||
|
@ -694,7 +694,7 @@ namespace glm
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
GLM_FUNC_DECL void extractEulerAngleXYZ(mat<4, 4, T, defaultp> const& M,
|
GLM_FUNC_QUALIFIER void extractEulerAngleXYZ(mat<4, 4, T, defaultp> const& M,
|
||||||
T & t1,
|
T & t1,
|
||||||
T & t2,
|
T & t2,
|
||||||
T & t3)
|
T & t3)
|
||||||
|
@ -68,8 +68,8 @@ namespace glm
|
|||||||
char_type newline;
|
char_type newline;
|
||||||
order_type order;
|
order_type order;
|
||||||
|
|
||||||
GLM_FUNC_DECL explicit format_punct(size_t a = 0);
|
GLM_FUNC_DISCARD_DECL explicit format_punct(size_t a = 0);
|
||||||
GLM_FUNC_DECL explicit format_punct(format_punct const&);
|
GLM_FUNC_DISCARD_DECL explicit format_punct(format_punct const&);
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename CTy, typename CTr = std::char_traits<CTy> >
|
template<typename CTy, typename CTr = std::char_traits<CTy> >
|
||||||
@ -77,8 +77,8 @@ namespace glm
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
GLM_FUNC_DECL explicit basic_state_saver(std::basic_ios<CTy,CTr>&);
|
GLM_FUNC_DISCARD_DECL explicit basic_state_saver(std::basic_ios<CTy,CTr>&);
|
||||||
GLM_FUNC_DECL ~basic_state_saver();
|
GLM_FUNC_DISCARD_DECL ~basic_state_saver();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
@ -106,8 +106,8 @@ namespace glm
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
GLM_FUNC_DECL explicit basic_format_saver(std::basic_ios<CTy,CTr>&);
|
GLM_FUNC_DISCARD_DECL explicit basic_format_saver(std::basic_ios<CTy,CTr>&);
|
||||||
GLM_FUNC_DECL ~basic_format_saver();
|
GLM_FUNC_DISCARD_DECL ~basic_format_saver();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
@ -123,14 +123,14 @@ namespace glm
|
|||||||
{
|
{
|
||||||
unsigned value;
|
unsigned value;
|
||||||
|
|
||||||
GLM_FUNC_DECL explicit precision(unsigned);
|
GLM_FUNC_DISCARD_DECL explicit precision(unsigned);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct width
|
struct width
|
||||||
{
|
{
|
||||||
unsigned value;
|
unsigned value;
|
||||||
|
|
||||||
GLM_FUNC_DECL explicit width(unsigned);
|
GLM_FUNC_DISCARD_DECL explicit width(unsigned);
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename CTy>
|
template<typename CTy>
|
||||||
@ -138,14 +138,14 @@ namespace glm
|
|||||||
{
|
{
|
||||||
CTy value[3];
|
CTy value[3];
|
||||||
|
|
||||||
GLM_FUNC_DECL explicit delimeter(CTy /* left */, CTy /* right */, CTy /* separator */ = ',');
|
GLM_FUNC_DISCARD_DECL explicit delimeter(CTy /* left */, CTy /* right */, CTy /* separator */ = ',');
|
||||||
};
|
};
|
||||||
|
|
||||||
struct order
|
struct order
|
||||||
{
|
{
|
||||||
order_type value;
|
order_type value;
|
||||||
|
|
||||||
GLM_FUNC_DECL explicit order(order_type);
|
GLM_FUNC_DISCARD_DECL explicit order(order_type);
|
||||||
};
|
};
|
||||||
|
|
||||||
// functions, inlined (inline)
|
// functions, inlined (inline)
|
||||||
@ -168,36 +168,36 @@ namespace glm
|
|||||||
}//namespace io
|
}//namespace io
|
||||||
|
|
||||||
template<typename CTy, typename CTr, typename T, qualifier Q>
|
template<typename CTy, typename CTr, typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, qua<T, Q> const&);
|
GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, qua<T, Q> const&);
|
||||||
template<typename CTy, typename CTr, typename T, qualifier Q>
|
template<typename CTy, typename CTr, typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, vec<1, T, Q> const&);
|
GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, vec<1, T, Q> const&);
|
||||||
template<typename CTy, typename CTr, typename T, qualifier Q>
|
template<typename CTy, typename CTr, typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, vec<2, T, Q> const&);
|
GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, vec<2, T, Q> const&);
|
||||||
template<typename CTy, typename CTr, typename T, qualifier Q>
|
template<typename CTy, typename CTr, typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, vec<3, T, Q> const&);
|
GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, vec<3, T, Q> const&);
|
||||||
template<typename CTy, typename CTr, typename T, qualifier Q>
|
template<typename CTy, typename CTr, typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, vec<4, T, Q> const&);
|
GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, vec<4, T, Q> const&);
|
||||||
template<typename CTy, typename CTr, typename T, qualifier Q>
|
template<typename CTy, typename CTr, typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<2, 2, T, Q> const&);
|
GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<2, 2, T, Q> const&);
|
||||||
template<typename CTy, typename CTr, typename T, qualifier Q>
|
template<typename CTy, typename CTr, typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<2, 3, T, Q> const&);
|
GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<2, 3, T, Q> const&);
|
||||||
template<typename CTy, typename CTr, typename T, qualifier Q>
|
template<typename CTy, typename CTr, typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<2, 4, T, Q> const&);
|
GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<2, 4, T, Q> const&);
|
||||||
template<typename CTy, typename CTr, typename T, qualifier Q>
|
template<typename CTy, typename CTr, typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<3, 2, T, Q> const&);
|
GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<3, 2, T, Q> const&);
|
||||||
template<typename CTy, typename CTr, typename T, qualifier Q>
|
template<typename CTy, typename CTr, typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<3, 3, T, Q> const&);
|
GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<3, 3, T, Q> const&);
|
||||||
template<typename CTy, typename CTr, typename T, qualifier Q>
|
template<typename CTy, typename CTr, typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<3, 4, T, Q> const&);
|
GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<3, 4, T, Q> const&);
|
||||||
template<typename CTy, typename CTr, typename T, qualifier Q>
|
template<typename CTy, typename CTr, typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<4, 2, T, Q> const&);
|
GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<4, 2, T, Q> const&);
|
||||||
template<typename CTy, typename CTr, typename T, qualifier Q>
|
template<typename CTy, typename CTr, typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<4, 3, T, Q> const&);
|
GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<4, 3, T, Q> const&);
|
||||||
template<typename CTy, typename CTr, typename T, qualifier Q>
|
template<typename CTy, typename CTr, typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<4, 4, T, Q> const&);
|
GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr>& operator<<(std::basic_ostream<CTy,CTr>&, mat<4, 4, T, Q> const&);
|
||||||
|
|
||||||
template<typename CTy, typename CTr, typename T, qualifier Q>
|
template<typename CTy, typename CTr, typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL std::basic_ostream<CTy,CTr> & operator<<(std::basic_ostream<CTy,CTr> &,
|
GLM_FUNC_DISCARD_DECL std::basic_ostream<CTy,CTr> & operator<<(std::basic_ostream<CTy,CTr> &,
|
||||||
std::pair<mat<4, 4, T, Q> const, mat<4, 4, T, Q> const> const&);
|
std::pair<mat<4, 4, T, Q> const, mat<4, 4, T, Q> const> const&);
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
|
@ -34,13 +34,13 @@ namespace glm
|
|||||||
/// Decomposes a model matrix to translations, rotation and scale components
|
/// Decomposes a model matrix to translations, rotation and scale components
|
||||||
/// @see gtx_matrix_decompose
|
/// @see gtx_matrix_decompose
|
||||||
template<typename T, qualifier Q>
|
template<typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL bool decompose(
|
GLM_FUNC_DISCARD_DECL bool decompose(
|
||||||
mat<4, 4, T, Q> const& modelMatrix,
|
mat<4, 4, T, Q> const& modelMatrix,
|
||||||
vec<3, T, Q> & scale, qua<T, Q> & orientation, vec<3, T, Q> & translation, vec<3, T, Q> & skew, vec<4, T, Q> & perspective);
|
vec<3, T, Q> & scale, qua<T, Q> & orientation, vec<3, T, Q> & translation, vec<3, T, Q> & skew, vec<4, T, Q> & perspective);
|
||||||
|
|
||||||
// Recomposes a model matrix from a previously-decomposed matrix
|
// Recomposes a model matrix from a previously-decomposed matrix
|
||||||
template <typename T, qualifier Q>
|
template <typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL mat<4, 4, T, Q> recompose(
|
GLM_FUNC_DISCARD_DECL mat<4, 4, T, Q> recompose(
|
||||||
vec<3, T, Q> const& scale, qua<T, Q> const& orientation, vec<3, T, Q> const& translation,
|
vec<3, T, Q> const& scale, qua<T, Q> const& orientation, vec<3, T, Q> const& translation,
|
||||||
vec<3, T, Q> const& skew, vec<4, T, Q> const& perspective);
|
vec<3, T, Q> const& skew, vec<4, T, Q> const& perspective);
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ namespace glm
|
|||||||
///
|
///
|
||||||
/// From GLM_GTX_matrix_factorisation extension.
|
/// From GLM_GTX_matrix_factorisation extension.
|
||||||
template <length_t C, length_t R, typename T, qualifier Q>
|
template <length_t C, length_t R, typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL void qr_decompose(mat<C, R, T, Q> const& in, mat<(C < R ? C : R), R, T, Q>& q, mat<C, (C < R ? C : R), T, Q>& r);
|
GLM_FUNC_DISCARD_DECL void qr_decompose(mat<C, R, T, Q> const& in, mat<(C < R ? C : R), R, T, Q>& q, mat<C, (C < R ? C : R), T, Q>& r);
|
||||||
|
|
||||||
/// Performs RQ factorisation of a matrix.
|
/// Performs RQ factorisation of a matrix.
|
||||||
/// Returns 2 matrices, r and q, such that r is an upper triangular matrix, the rows of q are orthonormal and span the same subspace than those of the input matrix, and r*q=in.
|
/// Returns 2 matrices, r and q, such that r is an upper triangular matrix, the rows of q are orthonormal and span the same subspace than those of the input matrix, and r*q=in.
|
||||||
@ -59,7 +59,7 @@ namespace glm
|
|||||||
///
|
///
|
||||||
/// From GLM_GTX_matrix_factorisation extension.
|
/// From GLM_GTX_matrix_factorisation extension.
|
||||||
template <length_t C, length_t R, typename T, qualifier Q>
|
template <length_t C, length_t R, typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL void rq_decompose(mat<C, R, T, Q> const& in, mat<(C < R ? C : R), R, T, Q>& r, mat<C, (C < R ? C : R), T, Q>& q);
|
GLM_FUNC_DISCARD_DECL void rq_decompose(mat<C, R, T, Q> const& in, mat<(C < R ? C : R), R, T, Q>& r, mat<C, (C < R ? C : R), T, Q>& q);
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ namespace glm
|
|||||||
/// Get the axis and angle of the rotation from a matrix.
|
/// Get the axis and angle of the rotation from a matrix.
|
||||||
/// From GLM_GTX_matrix_interpolation extension.
|
/// From GLM_GTX_matrix_interpolation extension.
|
||||||
template<typename T, qualifier Q>
|
template<typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL void axisAngle(
|
GLM_FUNC_DISCARD_DECL void axisAngle(
|
||||||
mat<4, 4, T, Q> const& Mat, vec<3, T, Q> & Axis, T & Angle);
|
mat<4, 4, T, Q> const& Mat, vec<3, T, Q> & Axis, T & Angle);
|
||||||
|
|
||||||
/// Build a matrix from axis and angle.
|
/// Build a matrix from axis and angle.
|
||||||
|
@ -94,17 +94,17 @@ namespace glm {
|
|||||||
/// Sorts a group of Eigenvalues&Eigenvectors, for largest Eigenvalue to smallest Eigenvalue.
|
/// Sorts a group of Eigenvalues&Eigenvectors, for largest Eigenvalue to smallest Eigenvalue.
|
||||||
/// The data in `outEigenvalues` and `outEigenvectors` are assumed to be matching order, i.e. `outEigenvector[i]` is the Eigenvector of the Eigenvalue `outEigenvalue[i]`.
|
/// The data in `outEigenvalues` and `outEigenvectors` are assumed to be matching order, i.e. `outEigenvector[i]` is the Eigenvector of the Eigenvalue `outEigenvalue[i]`.
|
||||||
template<typename T, qualifier Q>
|
template<typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL void sortEigenvalues(vec<2, T, Q>& eigenvalues, mat<2, 2, T, Q>& eigenvectors);
|
GLM_FUNC_DISCARD_DECL void sortEigenvalues(vec<2, T, Q>& eigenvalues, mat<2, 2, T, Q>& eigenvectors);
|
||||||
|
|
||||||
/// Sorts a group of Eigenvalues&Eigenvectors, for largest Eigenvalue to smallest Eigenvalue.
|
/// Sorts a group of Eigenvalues&Eigenvectors, for largest Eigenvalue to smallest Eigenvalue.
|
||||||
/// The data in `outEigenvalues` and `outEigenvectors` are assumed to be matching order, i.e. `outEigenvector[i]` is the Eigenvector of the Eigenvalue `outEigenvalue[i]`.
|
/// The data in `outEigenvalues` and `outEigenvectors` are assumed to be matching order, i.e. `outEigenvector[i]` is the Eigenvector of the Eigenvalue `outEigenvalue[i]`.
|
||||||
template<typename T, qualifier Q>
|
template<typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL void sortEigenvalues(vec<3, T, Q>& eigenvalues, mat<3, 3, T, Q>& eigenvectors);
|
GLM_FUNC_DISCARD_DECL void sortEigenvalues(vec<3, T, Q>& eigenvalues, mat<3, 3, T, Q>& eigenvectors);
|
||||||
|
|
||||||
/// Sorts a group of Eigenvalues&Eigenvectors, for largest Eigenvalue to smallest Eigenvalue.
|
/// Sorts a group of Eigenvalues&Eigenvectors, for largest Eigenvalue to smallest Eigenvalue.
|
||||||
/// The data in `outEigenvalues` and `outEigenvectors` are assumed to be matching order, i.e. `outEigenvector[i]` is the Eigenvector of the Eigenvalue `outEigenvalue[i]`.
|
/// The data in `outEigenvalues` and `outEigenvectors` are assumed to be matching order, i.e. `outEigenvector[i]` is the Eigenvector of the Eigenvalue `outEigenvalue[i]`.
|
||||||
template<typename T, qualifier Q>
|
template<typename T, qualifier Q>
|
||||||
GLM_FUNC_DECL void sortEigenvalues(vec<4, T, Q>& eigenvalues, mat<4, 4, T, Q>& eigenvectors);
|
GLM_FUNC_DISCARD_DECL void sortEigenvalues(vec<4, T, Q>& eigenvalues, mat<4, 4, T, Q>& eigenvectors);
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
}//namespace glm
|
}//namespace glm
|
||||||
|
@ -62,7 +62,7 @@ namespace glm
|
|||||||
/// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/umulExtended.xml">GLSL umulExtended man page</a>
|
/// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/umulExtended.xml">GLSL umulExtended man page</a>
|
||||||
/// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a>
|
/// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a>
|
||||||
template<length_t L, qualifier Q>
|
template<length_t L, qualifier Q>
|
||||||
GLM_FUNC_DECL void umulExtended(
|
GLM_FUNC_DISCARD_DECL void umulExtended(
|
||||||
vec<L, uint, Q> const& x,
|
vec<L, uint, Q> const& x,
|
||||||
vec<L, uint, Q> const& y,
|
vec<L, uint, Q> const& y,
|
||||||
vec<L, uint, Q> & msb,
|
vec<L, uint, Q> & msb,
|
||||||
@ -77,7 +77,7 @@ namespace glm
|
|||||||
/// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/imulExtended.xml">GLSL imulExtended man page</a>
|
/// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/imulExtended.xml">GLSL imulExtended man page</a>
|
||||||
/// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a>
|
/// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a>
|
||||||
template<length_t L, qualifier Q>
|
template<length_t L, qualifier Q>
|
||||||
GLM_FUNC_DECL void imulExtended(
|
GLM_FUNC_DISCARD_DECL void imulExtended(
|
||||||
vec<L, int, Q> const& x,
|
vec<L, int, Q> const& x,
|
||||||
vec<L, int, Q> const& y,
|
vec<L, int, Q> const& y,
|
||||||
vec<L, int, Q> & msb,
|
vec<L, int, Q> & msb,
|
||||||
|
@ -107,6 +107,9 @@ target_link_libraries(main PRIVATE glm::glm)
|
|||||||
|
|
||||||
### [GLM 1.0.1](https://github.com/g-truc/glm) - 2024-02-XX
|
### [GLM 1.0.1](https://github.com/g-truc/glm) - 2024-02-XX
|
||||||
|
|
||||||
|
#### Features:
|
||||||
|
- Added C++17 [[nodiscard]] support
|
||||||
|
|
||||||
#### Improvements:
|
#### Improvements:
|
||||||
- Enables only warnings as errors while building unit tests
|
- Enables only warnings as errors while building unit tests
|
||||||
- Added aligned_*vec3 simd support #1245
|
- Added aligned_*vec3 simd support #1245
|
||||||
|
@ -5,31 +5,33 @@
|
|||||||
|
|
||||||
static int test_defined()
|
static int test_defined()
|
||||||
{
|
{
|
||||||
glm::epsilonEqual(glm::vec2(), glm::vec2(), glm::vec2());
|
int Error = 0;
|
||||||
glm::epsilonEqual(glm::vec3(), glm::vec3(), glm::vec3());
|
|
||||||
glm::epsilonEqual(glm::vec4(), glm::vec4(), glm::vec4());
|
|
||||||
|
|
||||||
glm::epsilonNotEqual(glm::vec2(), glm::vec2(), glm::vec2());
|
Error += glm::all(glm::epsilonEqual(glm::vec2(0.0f), glm::vec2(0.0f), glm::vec2(glm::epsilon<float>()))) ? 0 : 1;
|
||||||
glm::epsilonNotEqual(glm::vec3(), glm::vec3(), glm::vec3());
|
Error += glm::all(glm::epsilonEqual(glm::vec3(0.0f), glm::vec3(0.0f), glm::vec3(glm::epsilon<float>()))) ? 0 : 1;
|
||||||
glm::epsilonNotEqual(glm::vec4(), glm::vec4(), glm::vec4());
|
Error += glm::all(glm::epsilonEqual(glm::vec4(0.0f), glm::vec4(0.0f), glm::vec4(glm::epsilon<float>()))) ? 0 : 1;
|
||||||
|
|
||||||
glm::epsilonEqual(glm::vec2(), glm::vec2(), 0.0f);
|
Error += glm::all(glm::epsilonNotEqual(glm::vec2(1.0f), glm::vec2(2.0f), glm::vec2(glm::epsilon<float>()))) ? 0 : 1;
|
||||||
glm::epsilonEqual(glm::vec3(), glm::vec3(), 0.0f);
|
Error += glm::all(glm::epsilonNotEqual(glm::vec3(1.0f), glm::vec3(2.0f), glm::vec3(glm::epsilon<float>()))) ? 0 : 1;
|
||||||
glm::epsilonEqual(glm::vec4(), glm::vec4(), 0.0f);
|
Error += glm::all(glm::epsilonNotEqual(glm::vec4(1.0f), glm::vec4(2.0f), glm::vec4(glm::epsilon<float>()))) ? 0 : 1;
|
||||||
glm::epsilonEqual(glm::quat(), glm::quat(), 0.0f);
|
|
||||||
|
|
||||||
glm::epsilonNotEqual(glm::vec2(), glm::vec2(), 0.0f);
|
Error += glm::all(glm::epsilonEqual(glm::vec2(0.0f), glm::vec2(0.0f), glm::epsilon<float>())) ? 0 : 1;
|
||||||
glm::epsilonNotEqual(glm::vec3(), glm::vec3(), 0.0f);
|
Error += glm::all(glm::epsilonEqual(glm::vec3(0.0f), glm::vec3(0.0f), glm::epsilon<float>())) ? 0 : 1;
|
||||||
glm::epsilonNotEqual(glm::vec4(), glm::vec4(), 0.0f);
|
Error += glm::all(glm::epsilonEqual(glm::vec4(0.0f), glm::vec4(0.0f), glm::epsilon<float>())) ? 0 : 1;
|
||||||
glm::epsilonNotEqual(glm::quat(), glm::quat(), 0.0f);
|
Error += glm::all(glm::epsilonEqual(glm::quat(glm::vec3(0.0f)), glm::quat(glm::vec3(0.0f)), glm::epsilon<float>())) ? 0 : 1;
|
||||||
|
|
||||||
return 0;
|
Error += glm::all(glm::epsilonNotEqual(glm::vec2(1.0f), glm::vec2(2.0f), glm::epsilon<float>())) ? 0 : 1;
|
||||||
|
Error += glm::all(glm::epsilonNotEqual(glm::vec3(1.0f), glm::vec3(2.0f), glm::epsilon<float>())) ? 0 : 1;
|
||||||
|
Error += glm::all(glm::epsilonNotEqual(glm::vec4(1.0f), glm::vec4(2.0f), glm::epsilon<float>())) ? 0 : 1;
|
||||||
|
Error += glm::all(glm::epsilonNotEqual(glm::quat(glm::vec3(0.0f)), glm::quat(glm::vec3(1.0f)), glm::epsilon<float>())) ? 0 : 1;
|
||||||
|
|
||||||
|
return Error;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
static int test_equal()
|
static int test_equal()
|
||||||
{
|
{
|
||||||
int Error(0);
|
int Error = 0;
|
||||||
|
|
||||||
{
|
{
|
||||||
T A = glm::epsilon<T>();
|
T A = glm::epsilon<T>();
|
||||||
@ -66,7 +68,7 @@ static int test_equal()
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
int Error(0);
|
int Error = 0;
|
||||||
|
|
||||||
Error += test_defined();
|
Error += test_defined();
|
||||||
Error += test_equal<float>();
|
Error += test_equal<float>();
|
||||||
|
Loading…
Reference in New Issue
Block a user