29 #ifndef glm_core_type_mat2x3 
   30 #define glm_core_type_mat2x3 
   33 #include "type_vec2.hpp" 
   34 #include "type_vec3.hpp" 
   35 #include "type_mat.hpp" 
   41         template <
typename T, precision P>
 
   46                 typedef std::size_t size_type;
 
   47                 typedef tvec3<T, P> col_type;
 
   48                 typedef tvec2<T, P> row_type;
 
   49                 typedef tmat2x3<T, P> type;
 
   50                 typedef tmat3x2<T, P> transpose_type;
 
   52                 GLM_FUNC_DECL GLM_CONSTEXPR length_t 
length() 
const;
 
   60                 GLM_FUNC_DECL tmat2x3();
 
   61                 GLM_FUNC_DECL tmat2x3(tmat2x3<T, P> 
const & m);
 
   62                 template <precision Q>
 
   63                 GLM_FUNC_DECL tmat2x3(tmat2x3<T, Q> 
const & m);
 
   65                 GLM_FUNC_DECL 
explicit tmat2x3(
 
   67                 GLM_FUNC_DECL 
explicit tmat2x3(
 
   69                 GLM_FUNC_DECL 
explicit tmat2x3(
 
   70                         T 
const & x0, T 
const & y0, T 
const & z0,
 
   71                         T 
const & x1, T 
const & y1, T 
const & z1);
 
   72                 GLM_FUNC_DECL 
explicit tmat2x3(
 
   76 #if(GLM_HAS_INITIALIZER_LISTS) 
   78                 GLM_FUNC_DECL tmat2x3(std::initializer_list<U> m);
 
   80                 GLM_FUNC_DECL tmat2x3(std::initializer_list<tvec3<T, P> > m);
 
   81 #endif//GLM_HAS_INITIALIZER_LISTS 
   85                 template <
typename X1, 
typename Y1, 
typename Z1, 
typename X2, 
typename Y2, 
typename Z2>
 
   86                 GLM_FUNC_DECL 
explicit tmat2x3(
 
   87                         X1 
const & x1, Y1 
const & y1, Z1 
const & z1,
 
   88                         X2 
const & x2, Y2 
const & y2, Z2 
const & z2);
 
   90                 template <
typename U, 
typename V>
 
   91                 GLM_FUNC_DECL 
explicit tmat2x3(
 
   92                         tvec3<U, P> 
const & v1,
 
   93                         tvec3<V, P> 
const & v2);
 
   97                 template <
typename U, precision Q>
 
   98                 GLM_FUNC_DECL 
explicit tmat2x3(tmat2x3<U, Q> 
const & m);
 
  100                 GLM_FUNC_DECL 
explicit tmat2x3(tmat2x2<T, P> 
const & x);
 
  101                 GLM_FUNC_DECL 
explicit tmat2x3(tmat3x3<T, P> 
const & x);
 
  102                 GLM_FUNC_DECL 
explicit tmat2x3(tmat4x4<T, P> 
const & x);
 
  103                 GLM_FUNC_DECL 
explicit tmat2x3(tmat2x4<T, P> 
const & x);
 
  104                 GLM_FUNC_DECL 
explicit tmat2x3(tmat3x2<T, P> 
const & x);
 
  105                 GLM_FUNC_DECL 
explicit tmat2x3(tmat3x4<T, P> 
const & x);
 
  106                 GLM_FUNC_DECL 
explicit tmat2x3(tmat4x2<T, P> 
const & x);
 
  107                 GLM_FUNC_DECL 
explicit tmat2x3(tmat4x3<T, P> 
const & x);
 
  110                 GLM_FUNC_DECL col_type & operator[](length_t i);
 
  111                 GLM_FUNC_DECL col_type 
const & operator[](length_t i) 
const;
 
  114                 GLM_FUNC_DECL tmat2x3<T, P> & operator=  (tmat2x3<T, P> 
const & m);
 
  115                 template <
typename U> 
 
  116                 GLM_FUNC_DECL tmat2x3<T, P> & operator=  (tmat2x3<U, P> 
const & m);
 
  117                 template <
typename U> 
 
  118                 GLM_FUNC_DECL tmat2x3<T, P> & operator+= (U s);
 
  119                 template <
typename U> 
 
  120                 GLM_FUNC_DECL tmat2x3<T, P> & operator+= (tmat2x3<U, P> 
const & m);
 
  121                 template <
typename U> 
 
  122                 GLM_FUNC_DECL tmat2x3<T, P> & operator-= (U s);
 
  123                 template <
typename U> 
 
  124                 GLM_FUNC_DECL tmat2x3<T, P> & operator-= (tmat2x3<U, P> 
const & m);
 
  125                 template <
typename U> 
 
  126                 GLM_FUNC_DECL tmat2x3<T, P> & operator*= (U s);
 
  127                 template <
typename U> 
 
  128                 GLM_FUNC_DECL tmat2x3<T, P> & operator/= (U s);
 
  133                 GLM_FUNC_DECL tmat2x3<T, P> & operator++ ();
 
  134                 GLM_FUNC_DECL tmat2x3<T, P> & operator-- ();
 
  135                 GLM_FUNC_DECL tmat2x3<T, P> operator++(
int);
 
  136                 GLM_FUNC_DECL tmat2x3<T, P> operator--(
int);
 
  141         template <
typename T, precision P>
 
  142         GLM_FUNC_DECL tmat2x3<T, P> operator+ (
 
  143                 tmat2x3<T, P> 
const & m,
 
  146         template <
typename T, precision P>
 
  147         tmat2x3<T, P> operator+ (
 
  148                 tmat2x3<T, P> 
const & m1,
 
  149                 tmat2x3<T, P> 
const & m2);
 
  151         template <
typename T, precision P>
 
  152         GLM_FUNC_DECL tmat2x3<T, P> operator- (
 
  153                 tmat2x3<T, P> 
const & m,
 
  156         template <
typename T, precision P>
 
  157         GLM_FUNC_DECL tmat2x3<T, P> operator- (
 
  158                 tmat2x3<T, P> 
const & m1,
 
  159                 tmat2x3<T, P> 
const & m2);
 
  161         template <
typename T, precision P>
 
  162         GLM_FUNC_DECL tmat2x3<T, P> operator* (
 
  163                 tmat2x3<T, P> 
const & m,
 
  166         template <
typename T, precision P>
 
  167         GLM_FUNC_DECL tmat2x3<T, P> operator* (
 
  169                 tmat2x3<T, P> 
const & m);
 
  171         template <
typename T, precision P>
 
  172         GLM_FUNC_DECL 
typename tmat2x3<T, P>::col_type operator* (
 
  173                 tmat2x3<T, P> 
const & m, 
 
  174                 typename tmat2x3<T, P>::row_type 
const & v);
 
  176         template <
typename T, precision P>
 
  177         GLM_FUNC_DECL 
typename tmat2x3<T, P>::row_type operator* (
 
  178                 typename tmat2x3<T, P>::col_type 
const & v,
 
  179                 tmat2x3<T, P> 
const & m);
 
  181         template <
typename T, precision P>
 
  182         GLM_FUNC_DECL tmat2x3<T, P> operator* (
 
  183                 tmat2x3<T, P> 
const & m1,
 
  184                 tmat2x2<T, P> 
const & m2);
 
  186         template <
typename T, precision P>
 
  187         GLM_FUNC_DECL tmat3x3<T, P> operator* (
 
  188                 tmat2x3<T, P> 
const & m1,
 
  189                 tmat3x2<T, P> 
const & m2);
 
  191         template <
typename T, precision P>
 
  192         GLM_FUNC_DECL tmat4x3<T, P> operator* (
 
  193                 tmat2x3<T, P> 
const & m1,
 
  194                 tmat4x2<T, P> 
const & m2);
 
  196         template <
typename T, precision P>
 
  197         GLM_FUNC_DECL tmat2x3<T, P> operator/ (
 
  198                 tmat2x3<T, P> 
const & m,
 
  201         template <
typename T, precision P>
 
  202         GLM_FUNC_DECL tmat2x3<T, P> operator/ (
 
  204                 tmat2x3<T, P> 
const & m);
 
  207         template <
typename T, precision P>
 
  208         GLM_FUNC_DECL tmat2x3<T, P> 
const operator- (
 
  209                 tmat2x3<T, P> 
const & m);
 
  214 #ifndef GLM_EXTERNAL_TEMPLATE 
  215 #include "type_mat2x3.inl" 
  218 #endif //glm_core_type_mat2x3 
GLM_FUNC_DECL genType::value_type length(genType const &x)
Returns the length of x, i.e., sqrt(x * x).