|
@@ -720,69 +720,6 @@ namespace detail
|
|
|
return *this;
|
|
return *this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- //////////////////////////////////////
|
|
|
|
|
- // Swizzle operators
|
|
|
|
|
-
|
|
|
|
|
- template <typename T, precision P>
|
|
|
|
|
- GLM_FUNC_QUALIFIER T tvec4<T, P>::swizzle(comp x) const
|
|
|
|
|
- {
|
|
|
|
|
- return (*this)[x];
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- template <typename T, precision P>
|
|
|
|
|
- GLM_FUNC_QUALIFIER tvec2<T, P> tvec4<T, P>::swizzle(comp x, comp y) const
|
|
|
|
|
- {
|
|
|
|
|
- return tvec2<T, P>(
|
|
|
|
|
- (*this)[x],
|
|
|
|
|
- (*this)[y]);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- template <typename T, precision P>
|
|
|
|
|
- GLM_FUNC_QUALIFIER tvec3<T, P> tvec4<T, P>::swizzle(comp x, comp y, comp z) const
|
|
|
|
|
- {
|
|
|
|
|
- return tvec3<T, P>(
|
|
|
|
|
- (*this)[x],
|
|
|
|
|
- (*this)[y],
|
|
|
|
|
- (*this)[z]);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- template <typename T, precision P>
|
|
|
|
|
- GLM_FUNC_QUALIFIER tvec4<T, P> tvec4<T, P>::swizzle(comp x, comp y, comp z, comp w) const
|
|
|
|
|
- {
|
|
|
|
|
- return tvec4<T, P>(
|
|
|
|
|
- (*this)[x],
|
|
|
|
|
- (*this)[y],
|
|
|
|
|
- (*this)[z],
|
|
|
|
|
- (*this)[w]);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- template <typename T, precision P>
|
|
|
|
|
- GLM_FUNC_QUALIFIER tref2<T, P> tvec4<T, P>::swizzle(comp x, comp y)
|
|
|
|
|
- {
|
|
|
|
|
- return tref2<T, P>(
|
|
|
|
|
- (*this)[x],
|
|
|
|
|
- (*this)[y]);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- template <typename T, precision P>
|
|
|
|
|
- GLM_FUNC_QUALIFIER tref3<T, P> tvec4<T, P>::swizzle(comp x, comp y, comp z)
|
|
|
|
|
- {
|
|
|
|
|
- return tref3<T, P>(
|
|
|
|
|
- (*this)[x],
|
|
|
|
|
- (*this)[y],
|
|
|
|
|
- (*this)[z]);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- template <typename T, precision P>
|
|
|
|
|
- GLM_FUNC_QUALIFIER tref4<T, P> tvec4<T, P>::swizzle(comp x, comp y, comp z, comp w)
|
|
|
|
|
- {
|
|
|
|
|
- return tref4<T, P>(
|
|
|
|
|
- (*this)[x],
|
|
|
|
|
- (*this)[y],
|
|
|
|
|
- (*this)[z],
|
|
|
|
|
- (*this)[w]);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
//////////////////////////////////////
|
|
//////////////////////////////////////
|
|
|
// Binary arithmetic operators
|
|
// Binary arithmetic operators
|
|
|
|
|
|