14         template<
typename T, qualifier Q>
 
   15         struct mat<2, 2, T, Q>
 
   17                 typedef vec<2, T, Q> col_type;
 
   18                 typedef vec<2, T, Q> row_type;
 
   19                 typedef mat<2, 2, T, Q> type;
 
   20                 typedef mat<2, 2, T, Q> transpose_type;
 
   29                 typedef length_t length_type;
 
   30                 GLM_FUNC_DECL 
static GLM_CONSTEXPR length_type 
length() { 
return 2; }
 
   32                 GLM_FUNC_DECL col_type & operator[](length_type i);
 
   33                 GLM_FUNC_DECL col_type 
const& operator[](length_type i) 
const;
 
   37                 GLM_FUNC_DECL mat() GLM_DEFAULT;
 
   38                 GLM_FUNC_DECL mat(mat<2, 2, T, Q> const& m) GLM_DEFAULT;
 
   40                 GLM_FUNC_DECL mat(mat<2, 2, T, P> const& m);
 
   42                 GLM_FUNC_DECL explicit mat(T scalar);
 
   44                         T const& x1, T const& y1,
 
   45                         T const& x2, T const& y2);
 
   52                 template<typename U, typename V, typename M, typename N>
 
   54                         U const& x1, V const& y1,
 
   55                         M const& x2, N const& y2);
 
   57                 template<typename U, typename V>
 
   59                         vec<2, U, Q> const& v1,
 
   60                         vec<2, V, Q> const& v2);
 
   64                 template<typename U, qualifier P>
 
   65                 GLM_FUNC_DECL GLM_EXPLICIT mat(mat<2, 2, U, P> const& m);
 
   67                 GLM_FUNC_DECL GLM_EXPLICIT mat(mat<3, 3, T, Q> const& x);
 
   68                 GLM_FUNC_DECL GLM_EXPLICIT mat(mat<4, 4, T, Q> const& x);
 
   69                 GLM_FUNC_DECL GLM_EXPLICIT mat(mat<2, 3, T, Q> const& x);
 
   70                 GLM_FUNC_DECL GLM_EXPLICIT mat(mat<3, 2, T, Q> const& x);
 
   71                 GLM_FUNC_DECL GLM_EXPLICIT mat(mat<2, 4, T, Q> const& x);
 
   72                 GLM_FUNC_DECL GLM_EXPLICIT mat(mat<4, 2, T, Q> const& x);
 
   73                 GLM_FUNC_DECL GLM_EXPLICIT mat(mat<3, 4, T, Q> const& x);
 
   74                 GLM_FUNC_DECL GLM_EXPLICIT mat(mat<4, 3, T, Q> const& x);
 
   78                 GLM_FUNC_DECL mat<2, 2, T, Q> & operator=(mat<2, 2, T, Q> const& v) GLM_DEFAULT;
 
   81                 GLM_FUNC_DECL mat<2, 2, T, Q> & operator=(mat<2, 2, U, Q> const& m);
 
   83                 GLM_FUNC_DECL mat<2, 2, T, Q> & operator+=(U s);
 
   85                 GLM_FUNC_DECL mat<2, 2, T, Q> & operator+=(mat<2, 2, U, Q> const& m);
 
   87                 GLM_FUNC_DECL mat<2, 2, T, Q> & operator-=(U s);
 
   89                 GLM_FUNC_DECL mat<2, 2, T, Q> & operator-=(mat<2, 2, U, Q> const& m);
 
   91                 GLM_FUNC_DECL mat<2, 2, T, Q> & operator*=(U s);
 
   93                 GLM_FUNC_DECL mat<2, 2, T, Q> & operator*=(mat<2, 2, U, Q> const& m);
 
   95                 GLM_FUNC_DECL mat<2, 2, T, Q> & operator/=(U s);
 
   97                 GLM_FUNC_DECL mat<2, 2, T, Q> & operator/=(mat<2, 2, U, Q> const& m);
 
  101                 GLM_FUNC_DECL mat<2, 2, T, Q> & operator++ ();
 
  102                 GLM_FUNC_DECL mat<2, 2, T, Q> & operator-- ();
 
  103                 GLM_FUNC_DECL mat<2, 2, T, Q> operator++(
int);
 
  104                 GLM_FUNC_DECL mat<2, 2, T, Q> operator--(
int);
 
  109         template<typename T, qualifier Q>
 
  110         GLM_FUNC_DECL mat<2, 2, T, Q> operator+(mat<2, 2, T, Q> const& m);
 
  112         template<typename T, qualifier Q>
 
  113         GLM_FUNC_DECL mat<2, 2, T, Q> operator-(mat<2, 2, T, Q> const& m);
 
  117         template<typename T, qualifier Q>
 
  118         GLM_FUNC_DECL mat<2, 2, T, Q> operator+(mat<2, 2, T, Q> const& m, T scalar);
 
  120         template<typename T, qualifier Q>
 
  121         GLM_FUNC_DECL mat<2, 2, T, Q> operator+(T scalar, mat<2, 2, T, Q> const& m);
 
  123         template<typename T, qualifier Q>
 
  124         GLM_FUNC_DECL mat<2, 2, T, Q> operator+(mat<2, 2, T, Q> const& m1, mat<2, 2, T, Q> const& m2);
 
  126         template<typename T, qualifier Q>
 
  127         GLM_FUNC_DECL mat<2, 2, T, Q> operator-(mat<2, 2, T, Q> const& m, T scalar);
 
  129         template<typename T, qualifier Q>
 
  130         GLM_FUNC_DECL mat<2, 2, T, Q> operator-(T scalar, mat<2, 2, T, Q> const& m);
 
  132         template<typename T, qualifier Q>
 
  133         GLM_FUNC_DECL mat<2, 2, T, Q> operator-(mat<2, 2, T, Q> const& m1, mat<2, 2, T, Q> const& m2);
 
  135         template<typename T, qualifier Q>
 
  136         GLM_FUNC_DECL mat<2, 2, T, Q> operator*(mat<2, 2, T, Q> const& m, T scalar);
 
  138         template<typename T, qualifier Q>
 
  139         GLM_FUNC_DECL mat<2, 2, T, Q> operator*(T scalar, mat<2, 2, T, Q> const& m);
 
  141         template<typename T, qualifier Q>
 
  142         GLM_FUNC_DECL typename mat<2, 2, T, Q>::col_type operator*(mat<2, 2, T, Q> const& m, typename mat<2, 2, T, Q>::row_type const& v);
 
  144         template<typename T, qualifier Q>
 
  145         GLM_FUNC_DECL typename mat<2, 2, T, Q>::row_type operator*(typename mat<2, 2, T, Q>::col_type const& v, mat<2, 2, T, Q> const& m);
 
  147         template<typename T, qualifier Q>
 
  148         GLM_FUNC_DECL mat<2, 2, T, Q> operator*(mat<2, 2, T, Q> const& m1, mat<2, 2, T, Q> const& m2);
 
  150         template<typename T, qualifier Q>
 
  151         GLM_FUNC_DECL mat<3, 2, T, Q> operator*(mat<2, 2, T, Q> const& m1, mat<3, 2, T, Q> const& m2);
 
  153         template<typename T, qualifier Q>
 
  154         GLM_FUNC_DECL mat<4, 2, T, Q> operator*(mat<2, 2, T, Q> const& m1, mat<4, 2, T, Q> const& m2);
 
  156         template<typename T, qualifier Q>
 
  157         GLM_FUNC_DECL mat<2, 2, T, Q> operator/(mat<2, 2, T, Q> const& m, T scalar);
 
  159         template<typename T, qualifier Q>
 
  160         GLM_FUNC_DECL mat<2, 2, T, Q> operator/(T scalar, mat<2, 2, T, Q> const& m);
 
  162         template<typename T, qualifier Q>
 
  163         GLM_FUNC_DECL typename mat<2, 2, T, Q>::col_type operator/(mat<2, 2, T, Q> const& m, typename mat<2, 2, T, Q>::row_type const& v);
 
  165         template<typename T, qualifier Q>
 
  166         GLM_FUNC_DECL typename mat<2, 2, T, Q>::row_type operator/(typename mat<2, 2, T, Q>::col_type const& v, mat<2, 2, T, Q> const& m);
 
  168         template<typename T, qualifier Q>
 
  169         GLM_FUNC_DECL mat<2, 2, T, Q> operator/(mat<2, 2, T, Q> const& m1, mat<2, 2, T, Q> const& m2);
 
  173         template<typename T, qualifier Q>
 
  174         GLM_FUNC_DECL 
bool operator==(mat<2, 2, T, Q> const& m1, mat<2, 2, T, Q> const& m2);
 
  176         template<typename T, qualifier Q>
 
  177         GLM_FUNC_DECL 
bool operator!=(mat<2, 2, T, Q> const& m1, mat<2, 2, T, Q> const& m2);
 
  180 #ifndef GLM_EXTERNAL_TEMPLATE 
  181 #include "type_mat2x2.inl" 
GLM_FUNC_DECL T length(vec< L, T, Q > const &x)
Returns the length of x, i.e., sqrt(x * x).