38 #       if GLM_HAS_ANONYMOUS_UNION 
   48         template <
typename T, precision P = defaultp>
 
   54                 typedef tvec3<T, P> type;
 
   55                 typedef tvec3<bool, P> bool_type;
 
   61 #               if GLM_HAS_ANONYMOUS_UNION 
   69                                         _GLM_SWIZZLE3_2_MEMBERS(T, P, tvec2, x, y, z)
 
   70                                         _GLM_SWIZZLE3_2_MEMBERS(T, P, tvec2, r, g, b)
 
   71                                         _GLM_SWIZZLE3_2_MEMBERS(T, P, tvec2, s, t, p)
 
   72                                         _GLM_SWIZZLE3_3_MEMBERS(T, P, tvec3, x, y, z)
 
   73                                         _GLM_SWIZZLE3_3_MEMBERS(T, P, tvec3, r, g, b)
 
   74                                         _GLM_SWIZZLE3_3_MEMBERS(T, P, tvec3, s, t, p)
 
   75                                         _GLM_SWIZZLE3_4_MEMBERS(T, P, tvec4, x, y, z)
 
   76                                         _GLM_SWIZZLE3_4_MEMBERS(T, P, tvec4, r, g, b)
 
   77                                         _GLM_SWIZZLE3_4_MEMBERS(T, P, tvec4, s, t, p)
 
   86                                 GLM_SWIZZLE_GEN_VEC_FROM_VEC3(T, P, tvec3, tvec2, tvec3, tvec4)
 
   93 #               ifdef GLM_FORCE_SIZE_FUNC 
   94                         typedef size_t size_type;
 
   96                         GLM_FUNC_DECL GLM_CONSTEXPR size_type size() 
const;
 
   98                         GLM_FUNC_DECL T & operator[](size_type i);
 
   99                         GLM_FUNC_DECL T 
const & operator[](size_type i) 
const;
 
  101                         typedef length_t length_type;
 
  103                         GLM_FUNC_DECL GLM_CONSTEXPR length_type 
length() 
const;
 
  105                         GLM_FUNC_DECL T & operator[](length_type i);
 
  106                         GLM_FUNC_DECL T 
const & operator[](length_type i) 
const;
 
  107 #               endif//GLM_FORCE_SIZE_FUNC 
  112                 GLM_FUNC_DECL tvec3();
 
  113                 template <precision Q>
 
  114                 GLM_FUNC_DECL tvec3(tvec3<T, Q> 
const & v);
 
  119                 GLM_FUNC_DECL 
explicit tvec3(ctor);
 
  120                 GLM_FUNC_DECL 
explicit tvec3(T 
const & s);
 
  121                 GLM_FUNC_DECL tvec3(T 
const & a, T 
const & b, T 
const & c);
 
  127                 template <
typename A, 
typename B, 
typename C>
 
  128                 GLM_FUNC_DECL tvec3(A 
const & a, B 
const & b, C 
const & c);
 
  129                 template <
typename A, 
typename B, 
typename C>
 
  130                 GLM_FUNC_DECL tvec3(tvec1<A, P> 
const & a, tvec1<B, P> 
const & b, tvec1<C, P> 
const & c);
 
  136                 template <
typename A, 
typename B, precision Q>
 
  137                 GLM_FUNC_DECL 
explicit tvec3(tvec2<A, Q> 
const & a, B 
const & b);
 
  139                 template <
typename A, 
typename B, precision Q>
 
  140                 GLM_FUNC_DECL 
explicit tvec3(tvec2<A, Q> 
const & a, tvec1<B, Q> 
const & b);
 
  142                 template <
typename A, 
typename B, precision Q>
 
  143                 GLM_FUNC_DECL 
explicit tvec3(A 
const & a, tvec2<B, Q> 
const & b);
 
  145                 template <
typename A, 
typename B, precision Q>
 
  146                 GLM_FUNC_DECL 
explicit tvec3(tvec1<A, Q> 
const & a, tvec2<B, Q> 
const & b);
 
  148                 template <
typename U, precision Q>
 
  149                 GLM_FUNC_DECL 
explicit tvec3(tvec4<U, Q> 
const & v);
 
  151 #               ifdef GLM_FORCE_EXPLICIT_CTOR 
  152                         template <
typename U, precision Q>
 
  154                         GLM_FUNC_DECL 
explicit tvec3(tvec3<U, Q> 
const & v);
 
  156                         template <
typename U, precision Q>
 
  158                         GLM_FUNC_DECL tvec3(tvec3<U, Q> 
const & v);
 
  164 #               if GLM_HAS_ANONYMOUS_UNION && defined(GLM_SWIZZLE) 
  165                         template <
int E0, 
int E1, 
int E2>
 
  166                         GLM_FUNC_DECL tvec3(detail::_swizzle<3, T, P, tvec3<T, P>, E0, E1, E2, -1> 
const & that)
 
  171                         template <
int E0, 
int E1>
 
  172                         GLM_FUNC_DECL tvec3(detail::_swizzle<2, T, P, tvec2<T, P>, E0, E1, -1, -2> 
const & v, T 
const & s)
 
  174                                 *
this = tvec3<T, P>(v(), s);
 
  177                         template <
int E0, 
int E1>
 
  178                         GLM_FUNC_DECL tvec3(T 
const & s, detail::_swizzle<2, T, P, tvec2<T, P>, E0, E1, -1, -2> 
const & v)
 
  180                                 *
this = tvec3<T, P>(s, v());
 
  182 #               endif// GLM_HAS_ANONYMOUS_UNION && defined(GLM_SWIZZLE) 
  187                 template <
typename U>
 
  188                 GLM_FUNC_DECL tvec3<T, P> & operator=(tvec3<U, P> 
const & v);
 
  189                 template <
typename U>
 
  190                 GLM_FUNC_DECL tvec3<T, P> & operator+=(U s);
 
  191                 template <
typename U>
 
  192                 GLM_FUNC_DECL tvec3<T, P> & operator+=(tvec1<U, P> 
const & v);
 
  193                 template <
typename U>
 
  194                 GLM_FUNC_DECL tvec3<T, P> & operator+=(tvec3<U, P> 
const & v);
 
  195                 template <
typename U>
 
  196                 GLM_FUNC_DECL tvec3<T, P> & operator-=(U s);
 
  197                 template <
typename U>
 
  198                 GLM_FUNC_DECL tvec3<T, P> & operator-=(tvec1<U, P> 
const & v);
 
  199                 template <
typename U>
 
  200                 GLM_FUNC_DECL tvec3<T, P> & operator-=(tvec3<U, P> 
const & v);
 
  201                 template <
typename U>
 
  202                 GLM_FUNC_DECL tvec3<T, P> & operator*=(U s);
 
  203                 template <
typename U>
 
  204                 GLM_FUNC_DECL tvec3<T, P> & operator*=(tvec1<U, P> 
const & v);
 
  205                 template <
typename U>
 
  206                 GLM_FUNC_DECL tvec3<T, P> & operator*=(tvec3<U, P> 
const & v);
 
  207                 template <
typename U>
 
  208                 GLM_FUNC_DECL tvec3<T, P> & operator/=(U s);
 
  209                 template <
typename U>
 
  210                 GLM_FUNC_DECL tvec3<T, P> & operator/=(tvec1<U, P> 
const & v);
 
  211                 template <
typename U>
 
  212                 GLM_FUNC_DECL tvec3<T, P> & operator/=(tvec3<U, P> 
const & v);
 
  217                 GLM_FUNC_DECL tvec3<T, P> & operator++();
 
  218                 GLM_FUNC_DECL tvec3<T, P> & operator--();
 
  219                 GLM_FUNC_DECL tvec3<T, P> operator++(
int);
 
  220                 GLM_FUNC_DECL tvec3<T, P> operator--(
int);
 
  225                 template <
typename U>
 
  226                 GLM_FUNC_DECL tvec3<T, P> & operator%=(U s);
 
  227                 template <
typename U>
 
  228                 GLM_FUNC_DECL tvec3<T, P> & operator%=(tvec1<U, P> 
const & v);
 
  229                 template <
typename U>
 
  230                 GLM_FUNC_DECL tvec3<T, P> & operator%=(tvec3<U, P> 
const & v);
 
  231                 template <
typename U>
 
  232                 GLM_FUNC_DECL tvec3<T, P> & operator&=(U s);
 
  233                 template <
typename U>
 
  234                 GLM_FUNC_DECL tvec3<T, P> & operator&=(tvec1<U, P> 
const & v);
 
  235                 template <
typename U>
 
  236                 GLM_FUNC_DECL tvec3<T, P> & operator&=(tvec3<U, P> 
const & v);
 
  237                 template <
typename U>
 
  238                 GLM_FUNC_DECL tvec3<T, P> & operator|=(U s);
 
  239                 template <
typename U>
 
  240                 GLM_FUNC_DECL tvec3<T, P> & operator|=(tvec1<U, P> 
const & v);
 
  241                 template <
typename U>
 
  242                 GLM_FUNC_DECL tvec3<T, P> & operator|=(tvec3<U, P> 
const & v);
 
  243                 template <
typename U>
 
  244                 GLM_FUNC_DECL tvec3<T, P> & operator^=(U s);
 
  245                 template <
typename U>
 
  246                 GLM_FUNC_DECL tvec3<T, P> & operator^=(tvec1<U, P> 
const & v);
 
  247                 template <
typename U>
 
  248                 GLM_FUNC_DECL tvec3<T, P> & operator^=(tvec3<U, P> 
const & v);
 
  249                 template <
typename U>
 
  250                 GLM_FUNC_DECL tvec3<T, P> & operator<<=(U s);
 
  251                 template <
typename U>
 
  252                 GLM_FUNC_DECL tvec3<T, P> & operator<<=(tvec1<U, P> 
const & v);
 
  253                 template <
typename U>
 
  254                 GLM_FUNC_DECL tvec3<T, P> & operator<<=(tvec3<U, P> 
const & v);
 
  255                 template <
typename U>
 
  256                 GLM_FUNC_DECL tvec3<T, P> & operator>>=(U s);
 
  257                 template <
typename U>
 
  258                 GLM_FUNC_DECL tvec3<T, P> & operator>>=(tvec1<U, P> 
const & v);
 
  259                 template <
typename U>
 
  260                 GLM_FUNC_DECL tvec3<T, P> & operator>>=(tvec3<U, P> 
const & v);
 
  263         template <
typename T, precision P>
 
  264         GLM_FUNC_DECL tvec3<T, P> operator+(tvec3<T, P> 
const & v, T 
const & s);
 
  266         template <
typename T, precision P>
 
  267         GLM_FUNC_DECL tvec3<T, P> operator+(tvec3<T, P> 
const & v, tvec1<T, P> 
const & s);
 
  269         template <
typename T, precision P>
 
  270         GLM_FUNC_DECL tvec3<T, P> operator+(T 
const & s, tvec3<T, P> 
const & v);
 
  272         template <
typename T, precision P>
 
  273         GLM_FUNC_DECL tvec3<T, P> operator+(tvec1<T, P> 
const & s, tvec3<T, P> 
const & v);
 
  275         template <
typename T, precision P>
 
  276         GLM_FUNC_DECL tvec3<T, P> operator+(tvec3<T, P> 
const & v1, tvec3<T, P> 
const & v2);
 
  278         template <
typename T, precision P>
 
  279         GLM_FUNC_DECL tvec3<T, P> operator-(tvec3<T, P> 
const & v, T 
const & s);
 
  281         template <
typename T, precision P>
 
  282         GLM_FUNC_DECL tvec3<T, P> operator-(tvec3<T, P> 
const & v, tvec1<T, P> 
const & s);
 
  284         template <
typename T, precision P>
 
  285         GLM_FUNC_DECL tvec3<T, P> operator-(T 
const & s, tvec3<T, P> 
const & v);
 
  287         template <
typename T, precision P>
 
  288         GLM_FUNC_DECL tvec3<T, P> operator-(tvec1<T, P> 
const & s, tvec3<T, P> 
const & v);
 
  290         template <
typename T, precision P>
 
  291         GLM_FUNC_DECL tvec3<T, P> operator-(tvec3<T, P> 
const & v1, tvec3<T, P> 
const & v2);
 
  293         template <
typename T, precision P>
 
  294         GLM_FUNC_DECL tvec3<T, P> operator*(tvec3<T, P> 
const & v, T 
const & s);
 
  296         template <
typename T, precision P>
 
  297         GLM_FUNC_DECL tvec3<T, P> operator*(tvec3<T, P> 
const & v, tvec1<T, P> 
const & s);
 
  299         template <
typename T, precision P>
 
  300         GLM_FUNC_DECL tvec3<T, P> operator*(T 
const & s, tvec3<T, P> 
const & v);
 
  302         template <
typename T, precision P>
 
  303         GLM_FUNC_DECL tvec3<T, P> operator*(tvec1<T, P> 
const & s, tvec3<T, P> 
const & v);
 
  305         template <
typename T, precision P>
 
  306         GLM_FUNC_DECL tvec3<T, P> operator*(tvec3<T, P> 
const & v1, tvec3<T, P> 
const & v2);
 
  308         template <
typename T, precision P>
 
  309         GLM_FUNC_DECL tvec3<T, P> operator/(tvec3<T, P> 
const & v, T 
const & s);
 
  311         template <
typename T, precision P>
 
  312         GLM_FUNC_DECL tvec3<T, P> operator/(tvec3<T, P> 
const & v, tvec1<T, P> 
const & s);
 
  314         template <
typename T, precision P>
 
  315         GLM_FUNC_DECL tvec3<T, P> operator/(T 
const & s, tvec3<T, P> 
const & v);
 
  317         template <
typename T, precision P>
 
  318         GLM_FUNC_DECL tvec3<T, P> operator/(tvec1<T, P> 
const & s, tvec3<T, P> 
const & v);
 
  320         template <
typename T, precision P>
 
  321         GLM_FUNC_DECL tvec3<T, P> operator/(tvec3<T, P> 
const & v1, tvec3<T, P> 
const & v2);
 
  323         template <
typename T, precision P>
 
  324         GLM_FUNC_DECL tvec3<T, P> operator-(tvec3<T, P> 
const & v);
 
  326         template <
typename T, precision P>
 
  327         GLM_FUNC_DECL tvec3<T, P> operator%(tvec3<T, P> 
const & v, T 
const & s);
 
  329         template <
typename T, precision P>
 
  330         GLM_FUNC_DECL tvec3<T, P> operator%(tvec3<T, P> 
const & v, tvec1<T, P> 
const & s);
 
  332         template <
typename T, precision P>
 
  333         GLM_FUNC_DECL tvec3<T, P> operator%(T 
const & s, tvec3<T, P> 
const & v);
 
  335         template <
typename T, precision P>
 
  336         GLM_FUNC_DECL tvec3<T, P> operator%(tvec1<T, P> 
const & s, tvec3<T, P> 
const & v);
 
  338         template <
typename T, precision P>
 
  339         GLM_FUNC_DECL tvec3<T, P> operator%(tvec3<T, P> 
const & v1, tvec3<T, P> 
const & v2);
 
  341         template <
typename T, precision P>
 
  342         GLM_FUNC_DECL tvec3<T, P> operator&(tvec3<T, P> 
const & v, T 
const & s);
 
  344         template <
typename T, precision P>
 
  345         GLM_FUNC_DECL tvec3<T, P> operator&(tvec3<T, P> 
const & v, tvec1<T, P> 
const & s);
 
  347         template <
typename T, precision P>
 
  348         GLM_FUNC_DECL tvec3<T, P> operator&(T 
const & s, tvec3<T, P> 
const & v);
 
  350         template <
typename T, precision P>
 
  351         GLM_FUNC_DECL tvec3<T, P> operator&(tvec1<T, P> 
const & s, tvec3<T, P> 
const & v);
 
  353         template <
typename T, precision P>
 
  354         GLM_FUNC_DECL tvec3<T, P> operator&(tvec3<T, P> 
const & v1, tvec3<T, P> 
const & v2);
 
  356         template <
typename T, precision P>
 
  357         GLM_FUNC_DECL tvec3<T, P> operator|(tvec3<T, P> 
const & v, T 
const & s);
 
  359         template <
typename T, precision P>
 
  360         GLM_FUNC_DECL tvec3<T, P> operator|(tvec3<T, P> 
const & v, tvec1<T, P> 
const & s);
 
  362         template <
typename T, precision P>
 
  363         GLM_FUNC_DECL tvec3<T, P> operator|(T 
const & s, tvec3<T, P> 
const & v);
 
  365         template <
typename T, precision P>
 
  366         GLM_FUNC_DECL tvec3<T, P> operator|(tvec1<T, P> 
const & s, tvec3<T, P> 
const & v);
 
  368         template <
typename T, precision P>
 
  369         GLM_FUNC_DECL tvec3<T, P> operator|(tvec3<T, P> 
const & v1, tvec3<T, P> 
const & v2);
 
  371         template <
typename T, precision P>
 
  372         GLM_FUNC_DECL tvec3<T, P> operator^(tvec3<T, P> 
const & v, T 
const & s);
 
  374         template <
typename T, precision P>
 
  375         GLM_FUNC_DECL tvec3<T, P> operator^(tvec3<T, P> 
const & v, tvec1<T, P> 
const & s);
 
  377         template <
typename T, precision P>
 
  378         GLM_FUNC_DECL tvec3<T, P> operator^(T 
const & s, tvec3<T, P> 
const & v);
 
  380         template <
typename T, precision P>
 
  381         GLM_FUNC_DECL tvec3<T, P> operator^(tvec1<T, P> 
const & s, tvec3<T, P> 
const & v);
 
  383         template <
typename T, precision P>
 
  384         GLM_FUNC_DECL tvec3<T, P> operator^(tvec3<T, P> 
const & v1, tvec3<T, P> 
const & v2);
 
  386         template <
typename T, precision P>
 
  387         GLM_FUNC_DECL tvec3<T, P> operator<<(tvec3<T, P> 
const & v, T 
const & s);
 
  389         template <
typename T, precision P>
 
  390         GLM_FUNC_DECL tvec3<T, P> operator<<(tvec3<T, P> 
const & v, tvec1<T, P> 
const & s);
 
  392         template <
typename T, precision P>
 
  393         GLM_FUNC_DECL tvec3<T, P> operator<<(T const & s, tvec3<T, P> 
const & v);
 
  395         template <
typename T, precision P>
 
  396         GLM_FUNC_DECL tvec3<T, P> operator<<(tvec1<T, P> 
const & s, tvec3<T, P> 
const & v);
 
  398         template <
typename T, precision P>
 
  399         GLM_FUNC_DECL tvec3<T, P> operator<<(tvec3<T, P> 
const & v1, tvec3<T, P> 
const & v2);
 
  401         template <
typename T, precision P>
 
  402         GLM_FUNC_DECL tvec3<T, P> operator>>(tvec3<T, P> 
const & v, T 
const & s);
 
  404         template <
typename T, precision P>
 
  405         GLM_FUNC_DECL tvec3<T, P> operator>>(tvec3<T, P> 
const & v, tvec1<T, P> 
const & s);
 
  407         template <
typename T, precision P>
 
  408         GLM_FUNC_DECL tvec3<T, P> operator>>(T 
const & s, tvec3<T, P> 
const & v);
 
  410         template <
typename T, precision P>
 
  411         GLM_FUNC_DECL tvec3<T, P> operator>>(tvec1<T, P> 
const & s, tvec3<T, P> 
const & v);
 
  413         template <
typename T, precision P>
 
  414         GLM_FUNC_DECL tvec3<T, P> operator>>(tvec3<T, P> 
const & v1, tvec3<T, P> 
const & v2);
 
  416         template <
typename T, precision P> 
 
  417         GLM_FUNC_DECL tvec3<T, P> operator~(tvec3<T, P> 
const & v);
 
  420 #ifndef GLM_EXTERNAL_TEMPLATE 
  421 #include "type_vec3.inl" 
  422 #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)