Classes | Namespaces | Defines
_swizzle.hpp File Reference

Go to the source code of this file.

Classes

struct  glm::detail::_swizzle< N, ValueType, P, VecType, E0, E1, E2, E3 >
struct  glm::detail::_swizzle_base0< T, N >
struct  glm::detail::_swizzle_base1< T, P, V, E0, E1, E2, E3, N >
struct  glm::detail::_swizzle_base1< T, P, V, E0, E1, E2, E3, 4 >
struct  glm::detail::_swizzle_base1< T, P, V, E0, E1, E2,-1, 3 >
struct  glm::detail::_swizzle_base1< T, P, V, E0, E1,-1,-2, 2 >
struct  glm::detail::_swizzle_base2< ValueType, P, VecType, N, E0, E1, E2, E3, DUPLICATE_ELEMENTS >
struct  glm::detail::_swizzle_base2< ValueType, P, VecType, N, E0, E1, E2, E3, 1 >
struct  glm::detail::_swizzle_base2< ValueType, P, VecType, N, E0, E1, E2, E3, 1 >::Stub

Namespaces

namespace  glm
namespace  glm::detail

Defines

#define _GLM_SWIZZLE2_2_MEMBERS(T, P, V, E0, E1)
#define _GLM_SWIZZLE2_3_MEMBERS(T, P, V, E0, E1)
#define _GLM_SWIZZLE2_4_MEMBERS(T, P, V, E0, E1)
#define _GLM_SWIZZLE3_2_MEMBERS(T, P, V, E0, E1, E2)
#define _GLM_SWIZZLE3_3_MEMBERS(T, P, V,E0, E1, E2)
#define _GLM_SWIZZLE3_4_MEMBERS(T, P, V, E0, E1, E2)
#define _GLM_SWIZZLE4_2_MEMBERS(T, P, V, E0, E1, E2, E3)
#define _GLM_SWIZZLE4_3_MEMBERS(T, P, V, E0, E1, E2, E3)
#define _GLM_SWIZZLE4_4_MEMBERS(T, P, V, E0, E1, E2, E3)
#define _GLM_SWIZZLE_FUNCTION_1_ARGS(RETURN_TYPE, FUNCTION)
#define _GLM_SWIZZLE_FUNCTION_2_ARGS(RETURN_TYPE, FUNCTION)
#define _GLM_SWIZZLE_FUNCTION_2_ARGS_SCALAR(RETURN_TYPE, FUNCTION)
#define _GLM_SWIZZLE_SCALAR_BINARY_OPERATOR_IMPLEMENTATION(OPERAND)
#define _GLM_SWIZZLE_TEMPLATE1   template <int N, typename T, precision P, typename V, int E0, int E1, int E2, int E3>
#define _GLM_SWIZZLE_TEMPLATE2   template <int N, typename T, precision P, typename V, int E0, int E1, int E2, int E3, int F0, int F1, int F2, int F3>
#define _GLM_SWIZZLE_TYPE1   _swizzle<N, T, P, V, E0, E1, E2, E3>
#define _GLM_SWIZZLE_TYPE2   _swizzle<N, T, P, V, F0, F1, F2, F3>
#define _GLM_SWIZZLE_VECTOR_BINARY_OPERATOR_IMPLEMENTATION(OPERAND)

Define Documentation

#define _GLM_SWIZZLE2_2_MEMBERS (   T,
  P,
  V,
  E0,
  E1 
)
Value:
struct { _swizzle<2, T, P, V<T, P>, 0,0,-1,-2> E0 ## E0; }; \
        struct { _swizzle<2, T, P, V<T, P>, 0,1,-1,-2> E0 ## E1; }; \
        struct { _swizzle<2, T, P, V<T, P>, 1,0,-1,-2> E1 ## E0; }; \
        struct { _swizzle<2, T, P, V<T, P>, 1,1,-1,-2> E1 ## E1; };

Definition at line 340 of file _swizzle.hpp.

#define _GLM_SWIZZLE2_3_MEMBERS (   T,
  P,
  V,
  E0,
  E1 
)
Value:
struct { _swizzle<3,T, P, V<T, P>, 0,0,0,-1> E0 ## E0 ## E0; }; \
        struct { _swizzle<3,T, P, V<T, P>, 0,0,1,-1> E0 ## E0 ## E1; }; \
        struct { _swizzle<3,T, P, V<T, P>, 0,1,0,-1> E0 ## E1 ## E0; }; \
        struct { _swizzle<3,T, P, V<T, P>, 0,1,1,-1> E0 ## E1 ## E1; }; \
        struct { _swizzle<3,T, P, V<T, P>, 1,0,0,-1> E1 ## E0 ## E0; }; \
        struct { _swizzle<3,T, P, V<T, P>, 1,0,1,-1> E1 ## E0 ## E1; }; \
        struct { _swizzle<3,T, P, V<T, P>, 1,1,0,-1> E1 ## E1 ## E0; }; \
        struct { _swizzle<3,T, P, V<T, P>, 1,1,1,-1> E1 ## E1 ## E1; };

Definition at line 346 of file _swizzle.hpp.

#define _GLM_SWIZZLE2_4_MEMBERS (   T,
  P,
  V,
  E0,
  E1 
)
Value:
struct { _swizzle<4,T, P, V<T, P>, 0,0,0,0> E0 ## E0 ## E0 ## E0; }; \
        struct { _swizzle<4,T, P, V<T, P>, 0,0,0,1> E0 ## E0 ## E0 ## E1; }; \
        struct { _swizzle<4,T, P, V<T, P>, 0,0,1,0> E0 ## E0 ## E1 ## E0; }; \
        struct { _swizzle<4,T, P, V<T, P>, 0,0,1,1> E0 ## E0 ## E1 ## E1; }; \
        struct { _swizzle<4,T, P, V<T, P>, 0,1,0,0> E0 ## E1 ## E0 ## E0; }; \
        struct { _swizzle<4,T, P, V<T, P>, 0,1,0,1> E0 ## E1 ## E0 ## E1; }; \
        struct { _swizzle<4,T, P, V<T, P>, 0,1,1,0> E0 ## E1 ## E1 ## E0; }; \
        struct { _swizzle<4,T, P, V<T, P>, 0,1,1,1> E0 ## E1 ## E1 ## E1; }; \
        struct { _swizzle<4,T, P, V<T, P>, 1,0,0,0> E1 ## E0 ## E0 ## E0; }; \
        struct { _swizzle<4,T, P, V<T, P>, 1,0,0,1> E1 ## E0 ## E0 ## E1; }; \
        struct { _swizzle<4,T, P, V<T, P>, 1,0,1,0> E1 ## E0 ## E1 ## E0; }; \
        struct { _swizzle<4,T, P, V<T, P>, 1,0,1,1> E1 ## E0 ## E1 ## E1; }; \
        struct { _swizzle<4,T, P, V<T, P>, 1,1,0,0> E1 ## E1 ## E0 ## E0; }; \
        struct { _swizzle<4,T, P, V<T, P>, 1,1,0,1> E1 ## E1 ## E0 ## E1; }; \
        struct { _swizzle<4,T, P, V<T, P>, 1,1,1,0> E1 ## E1 ## E1 ## E0; }; \
        struct { _swizzle<4,T, P, V<T, P>, 1,1,1,1> E1 ## E1 ## E1 ## E1; };

Definition at line 356 of file _swizzle.hpp.

#define _GLM_SWIZZLE3_2_MEMBERS (   T,
  P,
  V,
  E0,
  E1,
  E2 
)
Value:
struct { _swizzle<2,T, P, V<T, P>, 0,0,-1,-2> E0 ## E0; }; \
        struct { _swizzle<2,T, P, V<T, P>, 0,1,-1,-2> E0 ## E1; }; \
        struct { _swizzle<2,T, P, V<T, P>, 0,2,-1,-2> E0 ## E2; }; \
        struct { _swizzle<2,T, P, V<T, P>, 1,0,-1,-2> E1 ## E0; }; \
        struct { _swizzle<2,T, P, V<T, P>, 1,1,-1,-2> E1 ## E1; }; \
        struct { _swizzle<2,T, P, V<T, P>, 1,2,-1,-2> E1 ## E2; }; \
        struct { _swizzle<2,T, P, V<T, P>, 2,0,-1,-2> E2 ## E0; }; \
        struct { _swizzle<2,T, P, V<T, P>, 2,1,-1,-2> E2 ## E1; }; \
        struct { _swizzle<2,T, P, V<T, P>, 2,2,-1,-2> E2 ## E2; };

Definition at line 374 of file _swizzle.hpp.

#define _GLM_SWIZZLE3_3_MEMBERS (   T,
  P,
  V,
  E0,
  E1,
  E2 
)
Value:
struct { _swizzle<3,T,P, V<T, P>, 0,0,0,-1> E0 ## E0 ## E0; }; \
        struct { _swizzle<3,T,P, V<T, P>, 0,0,1,-1> E0 ## E0 ## E1; }; \
        struct { _swizzle<3,T,P, V<T, P>, 0,0,2,-1> E0 ## E0 ## E2; }; \
        struct { _swizzle<3,T,P, V<T, P>, 0,1,0,-1> E0 ## E1 ## E0; }; \
        struct { _swizzle<3,T,P, V<T, P>, 0,1,1,-1> E0 ## E1 ## E1; }; \
        struct { _swizzle<3,T,P, V<T, P>, 0,1,2,-1> E0 ## E1 ## E2; }; \
        struct { _swizzle<3,T,P, V<T, P>, 0,2,0,-1> E0 ## E2 ## E0; }; \
        struct { _swizzle<3,T,P, V<T, P>, 0,2,1,-1> E0 ## E2 ## E1; }; \
        struct { _swizzle<3,T,P, V<T, P>, 0,2,2,-1> E0 ## E2 ## E2; }; \
        struct { _swizzle<3,T,P, V<T, P>, 1,0,0,-1> E1 ## E0 ## E0; }; \
        struct { _swizzle<3,T,P, V<T, P>, 1,0,1,-1> E1 ## E0 ## E1; }; \
        struct { _swizzle<3,T,P, V<T, P>, 1,0,2,-1> E1 ## E0 ## E2; }; \
        struct { _swizzle<3,T,P, V<T, P>, 1,1,0,-1> E1 ## E1 ## E0; }; \
        struct { _swizzle<3,T,P, V<T, P>, 1,1,1,-1> E1 ## E1 ## E1; }; \
        struct { _swizzle<3,T,P, V<T, P>, 1,1,2,-1> E1 ## E1 ## E2; }; \
        struct { _swizzle<3,T,P, V<T, P>, 1,2,0,-1> E1 ## E2 ## E0; }; \
        struct { _swizzle<3,T,P, V<T, P>, 1,2,1,-1> E1 ## E2 ## E1; }; \
        struct { _swizzle<3,T,P, V<T, P>, 1,2,2,-1> E1 ## E2 ## E2; }; \
        struct { _swizzle<3,T,P, V<T, P>, 2,0,0,-1> E2 ## E0 ## E0; }; \
        struct { _swizzle<3,T,P, V<T, P>, 2,0,1,-1> E2 ## E0 ## E1; }; \
        struct { _swizzle<3,T,P, V<T, P>, 2,0,2,-1> E2 ## E0 ## E2; }; \
        struct { _swizzle<3,T,P, V<T, P>, 2,1,0,-1> E2 ## E1 ## E0; }; \
        struct { _swizzle<3,T,P, V<T, P>, 2,1,1,-1> E2 ## E1 ## E1; }; \
        struct { _swizzle<3,T,P, V<T, P>, 2,1,2,-1> E2 ## E1 ## E2; }; \
        struct { _swizzle<3,T,P, V<T, P>, 2,2,0,-1> E2 ## E2 ## E0; }; \
        struct { _swizzle<3,T,P, V<T, P>, 2,2,1,-1> E2 ## E2 ## E1; }; \
        struct { _swizzle<3,T,P, V<T, P>, 2,2,2,-1> E2 ## E2 ## E2; };

Definition at line 385 of file _swizzle.hpp.

#define _GLM_SWIZZLE3_4_MEMBERS (   T,
  P,
  V,
  E0,
  E1,
  E2 
)

Definition at line 414 of file _swizzle.hpp.

#define _GLM_SWIZZLE4_2_MEMBERS (   T,
  P,
  V,
  E0,
  E1,
  E2,
  E3 
)
Value:
struct { _swizzle<2,T, P, V<T, P>, 0,0,-1,-2> E0 ## E0; }; \
        struct { _swizzle<2,T, P, V<T, P>, 0,1,-1,-2> E0 ## E1; }; \
        struct { _swizzle<2,T, P, V<T, P>, 0,2,-1,-2> E0 ## E2; }; \
        struct { _swizzle<2,T, P, V<T, P>, 0,3,-1,-2> E0 ## E3; }; \
        struct { _swizzle<2,T, P, V<T, P>, 1,0,-1,-2> E1 ## E0; }; \
        struct { _swizzle<2,T, P, V<T, P>, 1,1,-1,-2> E1 ## E1; }; \
        struct { _swizzle<2,T, P, V<T, P>, 1,2,-1,-2> E1 ## E2; }; \
        struct { _swizzle<2,T, P, V<T, P>, 1,3,-1,-2> E1 ## E3; }; \
        struct { _swizzle<2,T, P, V<T, P>, 2,0,-1,-2> E2 ## E0; }; \
        struct { _swizzle<2,T, P, V<T, P>, 2,1,-1,-2> E2 ## E1; }; \
        struct { _swizzle<2,T, P, V<T, P>, 2,2,-1,-2> E2 ## E2; }; \
        struct { _swizzle<2,T, P, V<T, P>, 2,3,-1,-2> E2 ## E3; }; \
        struct { _swizzle<2,T, P, V<T, P>, 3,0,-1,-2> E3 ## E0; }; \
        struct { _swizzle<2,T, P, V<T, P>, 3,1,-1,-2> E3 ## E1; }; \
        struct { _swizzle<2,T, P, V<T, P>, 3,2,-1,-2> E3 ## E2; }; \
        struct { _swizzle<2,T, P, V<T, P>, 3,3,-1,-2> E3 ## E3; };

Definition at line 497 of file _swizzle.hpp.

#define _GLM_SWIZZLE4_3_MEMBERS (   T,
  P,
  V,
  E0,
  E1,
  E2,
  E3 
)

Definition at line 515 of file _swizzle.hpp.

#define _GLM_SWIZZLE4_4_MEMBERS (   T,
  P,
  V,
  E0,
  E1,
  E2,
  E3 
)

Definition at line 581 of file _swizzle.hpp.

#define _GLM_SWIZZLE_FUNCTION_1_ARGS (   RETURN_TYPE,
  FUNCTION 
)
Value:
_GLM_SWIZZLE_TEMPLATE1                                                          \
        GLM_FUNC_QUALIFIER typename _GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const _GLM_SWIZZLE_TYPE1& a)  \
        {                                                                               \
                return FUNCTION(a());                                                       \
        }

Definition at line 246 of file _swizzle.hpp.

#define _GLM_SWIZZLE_FUNCTION_2_ARGS (   RETURN_TYPE,
  FUNCTION 
)
Value:
_GLM_SWIZZLE_TEMPLATE2                                                                                      \
        GLM_FUNC_QUALIFIER typename _GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const _GLM_SWIZZLE_TYPE1& a, const _GLM_SWIZZLE_TYPE2& b) \
        {                                                                                                           \
                return FUNCTION(a(), b());                                                                              \
        }                                                                                                           \
        _GLM_SWIZZLE_TEMPLATE1                                                                                      \
        GLM_FUNC_QUALIFIER typename _GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const _GLM_SWIZZLE_TYPE1& a, const _GLM_SWIZZLE_TYPE1& b) \
        {                                                                                                           \
                return FUNCTION(a(), b());                                                                              \
        }                                                                                                           \
        _GLM_SWIZZLE_TEMPLATE1                                                                                      \
        GLM_FUNC_QUALIFIER typename _GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const _GLM_SWIZZLE_TYPE1& a, const typename V& b)         \
        {                                                                                                           \
                return FUNCTION(a(), b);                                                                                \
        }                                                                                                           \
        _GLM_SWIZZLE_TEMPLATE1                                                                                      \
        GLM_FUNC_QUALIFIER typename _GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const V& a, const _GLM_SWIZZLE_TYPE1& b)                  \
        {                                                                                                           \
                return FUNCTION(a, b());                                                                                \
        }

Definition at line 256 of file _swizzle.hpp.

#define _GLM_SWIZZLE_FUNCTION_2_ARGS_SCALAR (   RETURN_TYPE,
  FUNCTION 
)
Value:
_GLM_SWIZZLE_TEMPLATE2                                                                                                    \
        GLM_FUNC_QUALIFIER typename _GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const _GLM_SWIZZLE_TYPE1& a, const _GLM_SWIZZLE_TYPE2& b, const T& c)   \
        {                                                                                                                         \
                return FUNCTION(a(), b(), c);                                                                                         \
        }                                                                                                                         \
        _GLM_SWIZZLE_TEMPLATE1                                                                                                    \
        GLM_FUNC_QUALIFIER typename _GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const _GLM_SWIZZLE_TYPE1& a, const _GLM_SWIZZLE_TYPE1& b, const T& c)   \
        {                                                                                                                         \
                return FUNCTION(a(), b(), c);                                                                                         \
        }                                                                                                                         \
        _GLM_SWIZZLE_TEMPLATE1                                                                                                    \
        GLM_FUNC_QUALIFIER typename _GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const _GLM_SWIZZLE_TYPE1& a, const typename S0::vec_type& b, const T& c)\
        {                                                                                                                         \
                return FUNCTION(a(), b, c);                                                                                           \
        }                                                                                                                         \
        _GLM_SWIZZLE_TEMPLATE1                                                                                                    \
        GLM_FUNC_QUALIFIER typename _GLM_SWIZZLE_TYPE1::RETURN_TYPE FUNCTION(const typename V& a, const _GLM_SWIZZLE_TYPE1& b, const T& c)           \
        {                                                                                                                         \
                return FUNCTION(a, b(), c);                                                                                           \
        }

Definition at line 281 of file _swizzle.hpp.

Value:
_GLM_SWIZZLE_TEMPLATE1                                                          \
        GLM_FUNC_QUALIFIER V operator OPERAND ( const _GLM_SWIZZLE_TYPE1& a, const T& b)                   \
        {                                                                               \
                return a() OPERAND b;                                                       \
        }                                                                               \
        _GLM_SWIZZLE_TEMPLATE1                                                          \
        GLM_FUNC_QUALIFIER V operator OPERAND ( const T& a, const _GLM_SWIZZLE_TYPE1& b)                   \
        {                                                                               \
                return a OPERAND b();                                                       \
        }

Definition at line 231 of file _swizzle.hpp.

#define _GLM_SWIZZLE_TEMPLATE1   template <int N, typename T, precision P, typename V, int E0, int E1, int E2, int E3>

Definition at line 203 of file _swizzle.hpp.

#define _GLM_SWIZZLE_TEMPLATE2   template <int N, typename T, precision P, typename V, int E0, int E1, int E2, int E3, int F0, int F1, int F2, int F3>

Definition at line 204 of file _swizzle.hpp.

#define _GLM_SWIZZLE_TYPE1   _swizzle<N, T, P, V, E0, E1, E2, E3>

Definition at line 205 of file _swizzle.hpp.

#define _GLM_SWIZZLE_TYPE2   _swizzle<N, T, P, V, F0, F1, F2, F3>

Definition at line 206 of file _swizzle.hpp.

Value:
_GLM_SWIZZLE_TEMPLATE2                                                          \
        GLM_FUNC_QUALIFIER V operator OPERAND ( const _GLM_SWIZZLE_TYPE1& a, const _GLM_SWIZZLE_TYPE2& b)  \
        {                                                                               \
                return a() OPERAND b();                                                     \
        }                                                                               \
        _GLM_SWIZZLE_TEMPLATE1                                                          \
        GLM_FUNC_QUALIFIER V operator OPERAND ( const _GLM_SWIZZLE_TYPE1& a, const V& b)                   \
        {                                                                               \
                return a() OPERAND b;                                                       \
        }                                                                               \
        _GLM_SWIZZLE_TEMPLATE1                                                          \
        GLM_FUNC_QUALIFIER V operator OPERAND ( const V& a, const _GLM_SWIZZLE_TYPE1& b)                   \
        {                                                                               \
                return a OPERAND b();                                                       \
        }

Definition at line 211 of file _swizzle.hpp.



rtabmap
Author(s): Mathieu Labbe
autogenerated on Sat Jul 23 2016 11:44:28