38 #       if GLM_HAS_ANONYMOUS_UNION 
   48         template <
typename T, precision P = defaultp>
 
   54                 typedef tvec2<T, P> type;
 
   55                 typedef tvec2<bool, P> bool_type;
 
   61 #               if GLM_HAS_ANONYMOUS_UNION 
   69                                         _GLM_SWIZZLE2_2_MEMBERS(T, P, tvec2, x, y)
 
   70                                         _GLM_SWIZZLE2_2_MEMBERS(T, P, tvec2, r, g)
 
   71                                         _GLM_SWIZZLE2_2_MEMBERS(T, P, tvec2, s, t)
 
   72                                         _GLM_SWIZZLE2_3_MEMBERS(T, P, tvec3, x, y)
 
   73                                         _GLM_SWIZZLE2_3_MEMBERS(T, P, tvec3, r, g)
 
   74                                         _GLM_SWIZZLE2_3_MEMBERS(T, P, tvec3, s, t)
 
   75                                         _GLM_SWIZZLE2_4_MEMBERS(T, P, tvec4, x, y)
 
   76                                         _GLM_SWIZZLE2_4_MEMBERS(T, P, tvec4, r, g)
 
   77                                         _GLM_SWIZZLE2_4_MEMBERS(T, P, tvec4, s, t)
 
   85                                 GLM_SWIZZLE_GEN_VEC_FROM_VEC2(T, P, tvec2, tvec2, tvec3, tvec4)
 
   92 #               ifdef GLM_FORCE_SIZE_FUNC 
   93                         typedef size_t size_type;
 
   95                         GLM_FUNC_DECL GLM_CONSTEXPR size_type size() 
const;
 
   97                         GLM_FUNC_DECL T & operator[](size_type i);
 
   98                         GLM_FUNC_DECL T 
const & operator[](size_type i) 
const;
 
  100                         typedef length_t length_type;
 
  102                         GLM_FUNC_DECL GLM_CONSTEXPR length_type 
length() 
const;
 
  104                         GLM_FUNC_DECL T & operator[](length_type i);
 
  105                         GLM_FUNC_DECL T 
const & operator[](length_type i) 
const;
 
  106 #               endif//GLM_FORCE_SIZE_FUNC 
  111                 GLM_FUNC_DECL tvec2();
 
  112                 template <precision Q>
 
  113                 GLM_FUNC_DECL tvec2(tvec2<T, Q> 
const & v);
 
  118                 GLM_FUNC_DECL 
explicit tvec2(ctor);
 
  119                 GLM_FUNC_DECL 
explicit tvec2(T 
const & s);
 
  120                 GLM_FUNC_DECL tvec2(T 
const & s1, T 
const & s2);
 
  126                 template <
typename A, 
typename B>
 
  127                 GLM_FUNC_DECL tvec2(A 
const & x, B 
const & y);
 
  128                 template <
typename A, 
typename B>
 
  129                 GLM_FUNC_DECL tvec2(tvec1<A, P> 
const & v1, tvec1<B, P> 
const & v2);
 
  135                 template <
typename U, precision Q>
 
  136                 GLM_FUNC_DECL 
explicit tvec2(tvec3<U, Q> 
const & v);
 
  138                 template <
typename U, precision Q>
 
  139                 GLM_FUNC_DECL 
explicit tvec2(tvec4<U, Q> 
const & v);
 
  141 #               ifdef GLM_FORCE_EXPLICIT_CTOR 
  142                         template <
typename U, precision Q>
 
  144                         GLM_FUNC_DECL 
explicit tvec2(tvec2<U, Q> 
const & v);
 
  146                         template <
typename U, precision Q>
 
  148                         GLM_FUNC_DECL tvec2(tvec2<U, Q> 
const & v);
 
  154 #               if GLM_HAS_ANONYMOUS_UNION && defined(GLM_SWIZZLE) 
  155                         template <
int E0, 
int E1>
 
  156                         GLM_FUNC_DECL tvec2(detail::_swizzle<2, T, P, tvec2<T, P>, E0, E1,-1,-2> 
const & that)
 
  160 #               endif// GLM_HAS_ANONYMOUS_UNION && defined(GLM_SWIZZLE) 
  165                 template <
typename U>
 
  166                 GLM_FUNC_DECL tvec2<T, P> & operator=(tvec2<U, P> 
const & v);
 
  167                 template <
typename U>
 
  168                 GLM_FUNC_DECL tvec2<T, P> & operator+=(U s);
 
  169                 template <
typename U>
 
  170                 GLM_FUNC_DECL tvec2<T, P> & operator+=(tvec1<U, P> 
const & v);
 
  171                 template <
typename U>
 
  172                 GLM_FUNC_DECL tvec2<T, P> & operator+=(tvec2<U, P> 
const & v);
 
  173                 template <
typename U>
 
  174                 GLM_FUNC_DECL tvec2<T, P> & operator-=(U s);
 
  175                 template <
typename U>
 
  176                 GLM_FUNC_DECL tvec2<T, P> & operator-=(tvec1<U, P> 
const & v);
 
  177                 template <
typename U>
 
  178                 GLM_FUNC_DECL tvec2<T, P> & operator-=(tvec2<U, P> 
const & v);
 
  179                 template <
typename U>
 
  180                 GLM_FUNC_DECL tvec2<T, P> & operator*=(U s);
 
  181                 template <
typename U>
 
  182                 GLM_FUNC_DECL tvec2<T, P> & operator*=(tvec1<U, P> 
const & v);
 
  183                 template <
typename U>
 
  184                 GLM_FUNC_DECL tvec2<T, P> & operator*=(tvec2<U, P> 
const & v);
 
  185                 template <
typename U>
 
  186                 GLM_FUNC_DECL tvec2<T, P> & operator/=(U s);
 
  187                 template <
typename U>
 
  188                 GLM_FUNC_DECL tvec2<T, P> & operator/=(tvec1<U, P> 
const & v);
 
  189                 template <
typename U>
 
  190                 GLM_FUNC_DECL tvec2<T, P> & operator/=(tvec2<U, P> 
const & v);
 
  195                 GLM_FUNC_DECL tvec2<T, P> & operator++();
 
  196                 GLM_FUNC_DECL tvec2<T, P> & operator--();
 
  197                 GLM_FUNC_DECL tvec2<T, P> operator++(
int);
 
  198                 GLM_FUNC_DECL tvec2<T, P> operator--(
int);
 
  203                 template <
typename U> 
 
  204                 GLM_FUNC_DECL tvec2<T, P> & operator%= (U s);
 
  205                 template <
typename U> 
 
  206                 GLM_FUNC_DECL tvec2<T, P> & operator%= (tvec1<U, P> 
const & v);
 
  207                 template <
typename U> 
 
  208                 GLM_FUNC_DECL tvec2<T, P> & operator%= (tvec2<U, P> 
const & v);
 
  209                 template <
typename U> 
 
  210                 GLM_FUNC_DECL tvec2<T, P> & operator&= (U s);
 
  211                 template <
typename U> 
 
  212                 GLM_FUNC_DECL tvec2<T, P> & operator&= (tvec1<U, P> 
const & v);
 
  213                 template <
typename U> 
 
  214                 GLM_FUNC_DECL tvec2<T, P> & operator&= (tvec2<U, P> 
const & v);
 
  215                 template <
typename U> 
 
  216                 GLM_FUNC_DECL tvec2<T, P> & operator|= (U s);
 
  217                 template <
typename U> 
 
  218                 GLM_FUNC_DECL tvec2<T, P> & operator|= (tvec1<U, P> 
const & v);
 
  219                 template <
typename U> 
 
  220                 GLM_FUNC_DECL tvec2<T, P> & operator|= (tvec2<U, P> 
const & v);
 
  221                 template <
typename U> 
 
  222                 GLM_FUNC_DECL tvec2<T, P> & operator^= (U s);
 
  223                 template <
typename U> 
 
  224                 GLM_FUNC_DECL tvec2<T, P> & operator^= (tvec1<U, P> 
const & v);
 
  225                 template <
typename U> 
 
  226                 GLM_FUNC_DECL tvec2<T, P> & operator^= (tvec2<U, P> 
const & v);
 
  227                 template <
typename U> 
 
  228                 GLM_FUNC_DECL tvec2<T, P> & operator<<=(U s);
 
  229                 template <
typename U> 
 
  230                 GLM_FUNC_DECL tvec2<T, P> & operator<<=(tvec1<U, P> 
const & v);
 
  231                 template <
typename U> 
 
  232                 GLM_FUNC_DECL tvec2<T, P> & operator<<=(tvec2<U, P> 
const & v);
 
  233                 template <
typename U> 
 
  234                 GLM_FUNC_DECL tvec2<T, P> & operator>>=(U s);
 
  235                 template <
typename U> 
 
  236                 GLM_FUNC_DECL tvec2<T, P> & operator>>=(tvec1<U, P> 
const & v);
 
  237                 template <
typename U> 
 
  238                 GLM_FUNC_DECL tvec2<T, P> & operator>>=(tvec2<U, P> 
const & v);
 
  241         template <
typename T, precision P>
 
  242         GLM_FUNC_DECL tvec2<T, P> operator+(tvec2<T, P> 
const & v, T 
const & s);
 
  244         template <
typename T, precision P>
 
  245         GLM_FUNC_DECL tvec2<T, P> operator+(tvec2<T, P> 
const & v1, tvec1<T, P> 
const & v2);
 
  247         template <
typename T, precision P>
 
  248         GLM_FUNC_DECL tvec2<T, P> operator+(T 
const & s, tvec2<T, P> 
const & v);
 
  250         template <
typename T, precision P>
 
  251         GLM_FUNC_DECL tvec2<T, P> operator+(tvec1<T, P> 
const & v1, tvec2<T, P> 
const & v2);
 
  253         template <
typename T, precision P>
 
  254         GLM_FUNC_DECL tvec2<T, P> operator+(tvec2<T, P> 
const & v1, tvec2<T, P> 
const & v2);
 
  256         template <
typename T, precision P>
 
  257         GLM_FUNC_DECL tvec2<T, P> operator-(tvec2<T, P> 
const & v, T 
const & s);
 
  259         template <
typename T, precision P>
 
  260         GLM_FUNC_DECL tvec2<T, P> operator-(tvec2<T, P> 
const & v1, tvec1<T, P> 
const & v2);
 
  262         template <
typename T, precision P>
 
  263         GLM_FUNC_DECL tvec2<T, P> operator-(T 
const & s, tvec2<T, P> 
const & v);
 
  265         template <
typename T, precision P>
 
  266         GLM_FUNC_DECL tvec2<T, P> operator-(tvec1<T, P> 
const & v1, tvec2<T, P> 
const & v2);
 
  268         template <
typename T, precision P>
 
  269         GLM_FUNC_DECL tvec2<T, P> operator-(tvec2<T, P> 
const & v1, tvec2<T, P> 
const & v2);
 
  271         template <
typename T, precision P>
 
  272         GLM_FUNC_DECL tvec2<T, P> operator*(tvec2<T, P> 
const & v, T 
const & s);
 
  274         template <
typename T, precision P>
 
  275         GLM_FUNC_DECL tvec2<T, P> operator*(tvec2<T, P> 
const & v1, tvec1<T, P> 
const & v2);
 
  277         template <
typename T, precision P>
 
  278         GLM_FUNC_DECL tvec2<T, P> operator*(T 
const & s, tvec2<T, P> 
const & v);
 
  280         template <
typename T, precision P>
 
  281         GLM_FUNC_DECL tvec2<T, P> operator*(tvec1<T, P> 
const & v1, tvec2<T, P> 
const & v2);
 
  283         template <
typename T, precision P>
 
  284         GLM_FUNC_DECL tvec2<T, P> operator*(tvec2<T, P> 
const & v1, tvec2<T, P> 
const & v2);
 
  286         template <
typename T, precision P>
 
  287         GLM_FUNC_DECL tvec2<T, P> operator/(tvec2<T, P> 
const & v, T 
const & s);
 
  289         template <
typename T, precision P>
 
  290         GLM_FUNC_DECL tvec2<T, P> operator/(tvec2<T, P> 
const & v1, tvec1<T, P> 
const & v2);
 
  292         template <
typename T, precision P>
 
  293         GLM_FUNC_DECL tvec2<T, P> operator/(T 
const & s, tvec2<T, P> 
const & v);
 
  295         template <
typename T, precision P>
 
  296         GLM_FUNC_DECL tvec2<T, P> operator/(tvec1<T, P> 
const & v1, tvec2<T, P> 
const & v2);
 
  298         template <
typename T, precision P>
 
  299         GLM_FUNC_DECL tvec2<T, P> operator/(tvec2<T, P> 
const & v1, tvec2<T, P> 
const & v2);
 
  301         template <
typename T, precision P>
 
  302         GLM_FUNC_DECL tvec2<T, P> operator-(tvec2<T, P> 
const & v);
 
  304         template <
typename T, precision P>
 
  305         GLM_FUNC_DECL tvec2<T, P> operator%(tvec2<T, P> 
const & v, T 
const & s);
 
  307         template <
typename T, precision P>
 
  308         GLM_FUNC_DECL tvec2<T, P> operator%(tvec2<T, P> 
const & v1, tvec1<T, P> 
const & v2);
 
  310         template <
typename T, precision P>
 
  311         GLM_FUNC_DECL tvec2<T, P> operator%(T 
const & s, tvec2<T, P> 
const & v);
 
  313         template <
typename T, precision P>
 
  314         GLM_FUNC_DECL tvec2<T, P> operator%(tvec1<T, P> 
const & v1, tvec2<T, P> 
const & v2);
 
  316         template <
typename T, precision P>
 
  317         GLM_FUNC_DECL tvec2<T, P> operator%(tvec2<T, P> 
const & v1, tvec2<T, P> 
const & v2);
 
  319         template <
typename T, precision P>
 
  320         GLM_FUNC_DECL tvec2<T, P> operator&(tvec2<T, P> 
const & v, T 
const & s);
 
  322         template <
typename T, precision P>
 
  323         GLM_FUNC_DECL tvec2<T, P> operator&(tvec2<T, P> 
const & v1, tvec1<T, P> 
const & v2);
 
  325         template <
typename T, precision P>
 
  326         GLM_FUNC_DECL tvec2<T, P> operator&(T 
const & s, tvec2<T, P> 
const & v);
 
  328         template <
typename T, precision P>
 
  329         GLM_FUNC_DECL tvec2<T, P> operator&(tvec1<T, P> 
const & v1, tvec2<T, P> 
const & v2);
 
  331         template <
typename T, precision P>
 
  332         GLM_FUNC_DECL tvec2<T, P> operator&(tvec2<T, P> 
const & v1, tvec2<T, P> 
const & v2);
 
  334         template <
typename T, precision P>
 
  335         GLM_FUNC_DECL tvec2<T, P> operator|(tvec2<T, P> 
const & v, T 
const & s);
 
  337         template <
typename T, precision P>
 
  338         GLM_FUNC_DECL tvec2<T, P> operator|(tvec2<T, P> 
const & v1, tvec1<T, P> 
const & v2);
 
  340         template <
typename T, precision P>
 
  341         GLM_FUNC_DECL tvec2<T, P> operator|(T 
const & s, tvec2<T, P> 
const & v);
 
  343         template <
typename T, precision P>
 
  344         GLM_FUNC_DECL tvec2<T, P> operator|(tvec1<T, P> 
const & v1, tvec2<T, P> 
const & v2);
 
  346         template <
typename T, precision P>
 
  347         GLM_FUNC_DECL tvec2<T, P> operator|(tvec2<T, P> 
const & v1, tvec2<T, P> 
const & v2);
 
  349         template <
typename T, precision P>
 
  350         GLM_FUNC_DECL tvec2<T, P> operator^(tvec2<T, P> 
const & v, T 
const & s);
 
  352         template <
typename T, precision P>
 
  353         GLM_FUNC_DECL tvec2<T, P> operator^(tvec2<T, P> 
const & v1, tvec1<T, P> 
const & v2);
 
  355         template <
typename T, precision P>
 
  356         GLM_FUNC_DECL tvec2<T, P> operator^(T 
const & s, tvec2<T, P> 
const & v);
 
  358         template <
typename T, precision P>
 
  359         GLM_FUNC_DECL tvec2<T, P> operator^(tvec1<T, P> 
const & v1, tvec2<T, P> 
const & v2);
 
  361         template <
typename T, precision P>
 
  362         GLM_FUNC_DECL tvec2<T, P> operator^(tvec2<T, P> 
const & v1, tvec2<T, P> 
const & v2);
 
  364         template <
typename T, precision P>
 
  365         GLM_FUNC_DECL tvec2<T, P> operator<<(tvec2<T, P> 
const & v, T 
const & s);
 
  367         template <
typename T, precision P>
 
  368         GLM_FUNC_DECL tvec2<T, P> operator<<(tvec2<T, P> 
const & v1, tvec1<T, P> 
const & v2);
 
  370         template <
typename T, precision P>
 
  371         GLM_FUNC_DECL tvec2<T, P> operator<<(T const & s, tvec2<T, P> 
const & v);
 
  373         template <
typename T, precision P>
 
  374         GLM_FUNC_DECL tvec2<T, P> operator<<(tvec1<T, P> 
const & v1, tvec2<T, P> 
const & v2);
 
  376         template <
typename T, precision P>
 
  377         GLM_FUNC_DECL tvec2<T, P> operator<<(tvec2<T, P> 
const & v1, tvec2<T, P> 
const & v2);
 
  379         template <
typename T, precision P>
 
  380         GLM_FUNC_DECL tvec2<T, P> operator>>(tvec2<T, P> 
const & v, T 
const & s);
 
  382         template <
typename T, precision P>
 
  383         GLM_FUNC_DECL tvec2<T, P> operator>>(tvec2<T, P> 
const & v1, tvec1<T, P> 
const & v2);
 
  385         template <
typename T, precision P>
 
  386         GLM_FUNC_DECL tvec2<T, P> operator>>(T 
const & s, tvec2<T, P> 
const & v);
 
  388         template <
typename T, precision P>
 
  389         GLM_FUNC_DECL tvec2<T, P> operator>>(tvec1<T, P> 
const & v1, tvec2<T, P> 
const & v2);
 
  391         template <
typename T, precision P>
 
  392         GLM_FUNC_DECL tvec2<T, P> operator>>(tvec2<T, P> 
const & v1, tvec2<T, P> 
const & v2);
 
  394         template <
typename T, precision P>
 
  395         GLM_FUNC_DECL tvec2<T, P> operator~(tvec2<T, P> 
const & v);
 
  398 #ifndef GLM_EXTERNAL_TEMPLATE 
  399 #include "type_vec2.inl" 
  400 #endif//GLM_EXTERNAL_TEMPLATE 
OpenGL Mathematics (glm.g-truc.net) 
GLM_FUNC_DECL T length(vecType< T, P > const &x)
Returns the length of x, i.e., sqrt(x * x). 
OpenGL Mathematics (glm.g-truc.net) 
OpenGL Mathematics (glm.g-truc.net)