Public Types | Public Member Functions | Public Attributes | List of all members
glm::detail::tvec2< T, P > Struct Template Reference

#include <type_mat.hpp>

Public Types

typedef tvec2< bool, Pbool_type
 
enum  ctor { _null }
 
typedef int size_type
 
typedef tvec2< T, Ptype
 
typedef T value_type
 

Public Member Functions

GLM_FUNC_DECL GLM_CONSTEXPR length_t length () const
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator%= (tvec1< U, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator%= (tvec2< U, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator%= (U s)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator&= (tvec1< U, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator&= (tvec2< U, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator&= (U s)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator*= (tvec1< U, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator*= (tvec2< U, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator*= (U s)
 
GLM_FUNC_DECL tvec2< T, P > & operator++ ()
 
GLM_FUNC_DECL tvec2< T, Poperator++ (int)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator+= (tvec1< U, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator+= (tvec2< U, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator+= (U s)
 
GLM_FUNC_DECL tvec2< T, P > & operator-- ()
 
GLM_FUNC_DECL tvec2< T, Poperator-- (int)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator-= (tvec1< U, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator-= (tvec2< U, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator-= (U s)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator/= (tvec1< U, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator/= (tvec2< U, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator/= (U s)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator<<= (tvec1< U, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator<<= (tvec2< U, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator<<= (U s)
 
GLM_FUNC_DECL tvec2< T, P > & operator= (tvec2< T, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator= (tvec2< U, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator>>= (tvec1< U, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator>>= (tvec2< U, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator>>= (U s)
 
GLM_FUNC_DECL Toperator[] (length_t i)
 
GLM_FUNC_DECL const Toperator[] (length_t i) const
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator^= (tvec1< U, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator^= (tvec2< U, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator^= (U s)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator|= (tvec1< U, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator|= (tvec2< U, P > const &v)
 
template<typename U >
GLM_FUNC_DECL tvec2< T, P > & operator|= (U s)
 
GLM_FUNC_DECL tvec2 ()
 
GLM_FUNC_DECL tvec2 (ctor)
 
GLM_FUNC_DECL tvec2 (T const &s)
 
GLM_FUNC_DECL tvec2 (T const &s1, T const &s2)
 
template<typename U , typename V >
GLM_FUNC_DECL tvec2 (tvec1< U, P > const &v1, tvec1< V, P > const &v2)
 
GLM_FUNC_DECL tvec2 (tvec2< T, P > const &v)
 
template<precision Q>
GLM_FUNC_DECL tvec2 (tvec2< T, Q > const &v)
 
template<typename U , precision Q>
GLM_FUNC_DECL tvec2 (tvec2< U, Q > const &v)
 Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) More...
 
template<typename U , precision Q>
GLM_FUNC_DECL tvec2 (tvec3< U, Q > const &v)
 Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) More...
 
template<typename U , precision Q>
GLM_FUNC_DECL tvec2 (tvec4< U, Q > const &v)
 Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) More...
 
template<typename U , typename V >
GLM_FUNC_DECL tvec2 (U const &x, V const &y)
 Explicit converions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification) More...
 

Public Attributes

union {
   T   r
 
   T   s
 
   T   x
 
}; 
 
union {
   T   g
 
   T   t
 
   T   y
 
}; 
 

Detailed Description

template<typename T, precision P>
struct glm::detail::tvec2< T, P >

Definition at line 36 of file type_mat.hpp.

Member Typedef Documentation

◆ bool_type

template<typename T , precision P>
typedef tvec2<bool, P> glm::detail::tvec2< T, P >::bool_type

Definition at line 54 of file type_vec2.hpp.

◆ size_type

template<typename T , precision P>
typedef int glm::detail::tvec2< T, P >::size_type

Definition at line 56 of file type_vec2.hpp.

◆ type

template<typename T , precision P>
typedef tvec2<T, P> glm::detail::tvec2< T, P >::type

Definition at line 53 of file type_vec2.hpp.

◆ value_type

template<typename T , precision P>
typedef T glm::detail::tvec2< T, P >::value_type

Definition at line 55 of file type_vec2.hpp.

Member Enumeration Documentation

◆ ctor

template<typename T , precision P>
enum glm::detail::tvec2::ctor
Enumerator
_null 

Definition at line 51 of file type_vec2.hpp.

Constructor & Destructor Documentation

◆ tvec2() [1/11]

template<typename T , precision P>
GLM_FUNC_DECL glm::detail::tvec2< T, P >::tvec2 ( )

◆ tvec2() [2/11]

template<typename T , precision P>
GLM_FUNC_DECL glm::detail::tvec2< T, P >::tvec2 ( tvec2< T, P > const &  v)

◆ tvec2() [3/11]

template<typename T , precision P>
template<precision Q>
GLM_FUNC_DECL glm::detail::tvec2< T, P >::tvec2 ( tvec2< T, Q > const &  v)

◆ tvec2() [4/11]

template<typename T , precision P>
GLM_FUNC_DECL glm::detail::tvec2< T, P >::tvec2 ( ctor  )
explicit

◆ tvec2() [5/11]

template<typename T , precision P>
GLM_FUNC_DECL glm::detail::tvec2< T, P >::tvec2 ( T const &  s)
explicit

◆ tvec2() [6/11]

template<typename T , precision P>
GLM_FUNC_DECL glm::detail::tvec2< T, P >::tvec2 ( T const &  s1,
T const &  s2 
)

◆ tvec2() [7/11]

template<typename T , precision P>
template<typename U , typename V >
GLM_FUNC_DECL glm::detail::tvec2< T, P >::tvec2 ( U const &  x,
V const &  y 
)

Explicit converions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)

◆ tvec2() [8/11]

template<typename T , precision P>
template<typename U , typename V >
GLM_FUNC_DECL glm::detail::tvec2< T, P >::tvec2 ( tvec1< U, P > const &  v1,
tvec1< V, P > const &  v2 
)

◆ tvec2() [9/11]

template<typename T , precision P>
template<typename U , precision Q>
GLM_FUNC_DECL glm::detail::tvec2< T, P >::tvec2 ( tvec2< U, Q > const &  v)

Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)

◆ tvec2() [10/11]

template<typename T , precision P>
template<typename U , precision Q>
GLM_FUNC_DECL glm::detail::tvec2< T, P >::tvec2 ( tvec3< U, Q > const &  v)
explicit

Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)

◆ tvec2() [11/11]

template<typename T , precision P>
template<typename U , precision Q>
GLM_FUNC_DECL glm::detail::tvec2< T, P >::tvec2 ( tvec4< U, Q > const &  v)
explicit

Explicit conversions (From section 5.4.1 Conversion and scalar constructors of GLSL 1.30.08 specification)

Member Function Documentation

◆ length()

template<typename T , precision P>
GLM_FUNC_DECL GLM_CONSTEXPR length_t glm::detail::tvec2< T, P >::length ( ) const

◆ operator%=() [1/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator%= ( tvec1< U, P > const &  v)

◆ operator%=() [2/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator%= ( tvec2< U, P > const &  v)

◆ operator%=() [3/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator%= ( U  s)

◆ operator&=() [1/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator&= ( tvec1< U, P > const &  v)

◆ operator&=() [2/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator&= ( tvec2< U, P > const &  v)

◆ operator&=() [3/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator&= ( U  s)

◆ operator*=() [1/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator*= ( tvec1< U, P > const &  v)

◆ operator*=() [2/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator*= ( tvec2< U, P > const &  v)

◆ operator*=() [3/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator*= ( U  s)

◆ operator++() [1/2]

template<typename T , precision P>
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator++ ( )

◆ operator++() [2/2]

template<typename T , precision P>
GLM_FUNC_DECL tvec2<T, P> glm::detail::tvec2< T, P >::operator++ ( int  )

◆ operator+=() [1/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator+= ( tvec1< U, P > const &  v)

◆ operator+=() [2/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator+= ( tvec2< U, P > const &  v)

◆ operator+=() [3/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator+= ( U  s)

◆ operator--() [1/2]

template<typename T , precision P>
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator-- ( )

◆ operator--() [2/2]

template<typename T , precision P>
GLM_FUNC_DECL tvec2<T, P> glm::detail::tvec2< T, P >::operator-- ( int  )

◆ operator-=() [1/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator-= ( tvec1< U, P > const &  v)

◆ operator-=() [2/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator-= ( tvec2< U, P > const &  v)

◆ operator-=() [3/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator-= ( U  s)

◆ operator/=() [1/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator/= ( tvec1< U, P > const &  v)

◆ operator/=() [2/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator/= ( tvec2< U, P > const &  v)

◆ operator/=() [3/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator/= ( U  s)

◆ operator<<=() [1/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator<<= ( tvec1< U, P > const &  v)

◆ operator<<=() [2/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator<<= ( tvec2< U, P > const &  v)

◆ operator<<=() [3/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator<<= ( U  s)

◆ operator=() [1/2]

template<typename T , precision P>
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator= ( tvec2< T, P > const &  v)

◆ operator=() [2/2]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator= ( tvec2< U, P > const &  v)

◆ operator>>=() [1/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator>>= ( tvec1< U, P > const &  v)

◆ operator>>=() [2/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator>>= ( tvec2< U, P > const &  v)

◆ operator>>=() [3/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator>>= ( U  s)

◆ operator[]() [1/2]

template<typename T , precision P>
GLM_FUNC_DECL T& glm::detail::tvec2< T, P >::operator[] ( length_t  i)

◆ operator[]() [2/2]

template<typename T , precision P>
GLM_FUNC_DECL const T& glm::detail::tvec2< T, P >::operator[] ( length_t  i) const

◆ operator^=() [1/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator^= ( tvec1< U, P > const &  v)

◆ operator^=() [2/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator^= ( tvec2< U, P > const &  v)

◆ operator^=() [3/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator^= ( U  s)

◆ operator|=() [1/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator|= ( tvec1< U, P > const &  v)

◆ operator|=() [2/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator|= ( tvec2< U, P > const &  v)

◆ operator|=() [3/3]

template<typename T , precision P>
template<typename U >
GLM_FUNC_DECL tvec2<T, P>& glm::detail::tvec2< T, P >::operator|= ( U  s)

Member Data Documentation

◆ @3

union { ... }

◆ @5

union { ... }

◆ g

template<typename T , precision P>
T glm::detail::tvec2< T, P >::g

Definition at line 85 of file type_vec2.hpp.

◆ r

template<typename T , precision P>
T glm::detail::tvec2< T, P >::r

Definition at line 84 of file type_vec2.hpp.

◆ s

template<typename T , precision P>
T glm::detail::tvec2< T, P >::s

Definition at line 84 of file type_vec2.hpp.

◆ t

template<typename T , precision P>
T glm::detail::tvec2< T, P >::t

Definition at line 85 of file type_vec2.hpp.

◆ x

template<typename T , precision P>
T glm::detail::tvec2< T, P >::x

Definition at line 84 of file type_vec2.hpp.

◆ y

template<typename T , precision P>
T glm::detail::tvec2< T, P >::y

Definition at line 85 of file type_vec2.hpp.


The documentation for this struct was generated from the following files:


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:27