Flow Visualisation
type_mat3x2.hpp
Go to the documentation of this file.
1 
29 #ifndef glm_core_type_mat3x2
30 #define glm_core_type_mat3x2
31 
32 #include "type_mat.hpp"
33 
34 namespace glm{
35 namespace detail
36 {
37  template <typename T> struct tvec1;
38  template <typename T> struct tvec2;
39  template <typename T> struct tvec3;
40  template <typename T> struct tvec4;
41  template <typename T> struct tmat2x2;
42  template <typename T> struct tmat2x3;
43  template <typename T> struct tmat2x4;
44  template <typename T> struct tmat3x2;
45  template <typename T> struct tmat3x3;
46  template <typename T> struct tmat3x4;
47  template <typename T> struct tmat4x2;
48  template <typename T> struct tmat4x3;
49  template <typename T> struct tmat4x4;
50 
51  template <typename T>
52  struct tmat3x2
53  {
54  enum ctor{null};
55  typedef T value_type;
56  typedef std::size_t size_type;
57  typedef tvec2<T> col_type;
58  typedef tvec3<T> row_type;
59  typedef tmat3x2<T> type;
61 
62  static GLM_FUNC_DECL size_type col_size();
63  static GLM_FUNC_DECL size_type row_size();
64 
65  GLM_FUNC_DECL GLM_CONSTEXPR size_type length() const;
66 
67  private:
68  // Data
69  col_type value[3];
70 
71  public:
72  // Constructors
74  GLM_FUNC_DECL tmat3x2(tmat3x2 const & m);
75 
76  GLM_FUNC_DECL explicit tmat3x2(
77  ctor);
78  GLM_FUNC_DECL explicit tmat3x2(
79  value_type const & s);
80  GLM_FUNC_DECL explicit tmat3x2(
81  value_type const & x0, value_type const & y0,
82  value_type const & x1, value_type const & y1,
83  value_type const & x2, value_type const & y2);
84  GLM_FUNC_DECL explicit tmat3x2(
85  col_type const & v0,
86  col_type const & v1,
87  col_type const & v2);
88 
90  // Conversions
91  template <typename U>
92  GLM_FUNC_DECL explicit tmat3x2(
93  U const & x);
94 
95  template
96  <
97  typename X1, typename Y1,
98  typename X2, typename Y2,
99  typename X3, typename Y3
100  >
101  GLM_FUNC_DECL explicit tmat3x2(
102  X1 const & x1, Y1 const & y1,
103  X2 const & x2, Y2 const & y2,
104  X3 const & x3, Y3 const & y3);
105 
106  template <typename V1, typename V2, typename V3>
107  GLM_FUNC_DECL explicit tmat3x2(
108  tvec2<V1> const & v1,
109  tvec2<V2> const & v2,
110  tvec2<V3> const & v3);
111 
112  // Matrix conversions
113  template <typename U>
114  GLM_FUNC_DECL explicit tmat3x2(tmat3x2<U> const & m);
115 
116  GLM_FUNC_DECL explicit tmat3x2(tmat2x2<T> const & x);
117  GLM_FUNC_DECL explicit tmat3x2(tmat3x3<T> const & x);
118  GLM_FUNC_DECL explicit tmat3x2(tmat4x4<T> const & x);
119  GLM_FUNC_DECL explicit tmat3x2(tmat2x3<T> const & x);
120  GLM_FUNC_DECL explicit tmat3x2(tmat2x4<T> const & x);
121  GLM_FUNC_DECL explicit tmat3x2(tmat3x4<T> const & x);
122  GLM_FUNC_DECL explicit tmat3x2(tmat4x2<T> const & x);
123  GLM_FUNC_DECL explicit tmat3x2(tmat4x3<T> const & x);
124 
125  // Accesses
126  GLM_FUNC_DECL col_type & operator[](size_type i);
127  GLM_FUNC_DECL col_type const & operator[](size_type i) const;
128 
129  // Unary updatable operators
131  template <typename U>
133  template <typename U>
134  GLM_FUNC_DECL tmat3x2<T> & operator+= (U const & s);
135  template <typename U>
137  template <typename U>
138  GLM_FUNC_DECL tmat3x2<T> & operator-= (U const & s);
139  template <typename U>
141  template <typename U>
142  GLM_FUNC_DECL tmat3x2<T> & operator*= (U const & s);
143  template <typename U>
145  template <typename U>
146  GLM_FUNC_DECL tmat3x2<T> & operator/= (U const & s);
147 
150  };
151 
152  // Binary operators
153  template <typename T>
155  tmat3x2<T> const & m,
156  typename tmat3x2<T>::value_type const & s);
157 
158  template <typename T>
160  tmat3x2<T> const & m1,
161  tmat3x2<T> const & m2);
162 
163  template <typename T>
165  tmat3x2<T> const & m,
166  typename tmat3x2<T>::value_type const & s);
167 
168  template <typename T>
170  tmat3x2<T> const & m1,
171  tmat3x2<T> const & m2);
172 
173  template <typename T>
175  tmat3x2<T> const & m,
176  typename tmat3x2<T>::value_type const & s);
177 
178  template <typename T>
180  typename tmat3x2<T>::value_type const & s,
181  tmat3x2<T> const & m);
182 
183  template <typename T>
185  tmat3x2<T> const & m,
186  typename tmat3x2<T>::row_type const & v);
187 
188  template <typename T>
190  typename tmat3x2<T>::col_type const & v,
191  tmat3x2<T> const & m);
192 
193  template <typename T>
195  tmat3x2<T> const & m1,
196  tmat2x3<T> const & m2);
197 
198  template <typename T>
200  tmat3x2<T> const & m1,
201  tmat3x3<T> const & m2);
202 
203  template <typename T>
205  tmat3x2<T> const & m1,
206  tmat4x3<T> const & m2);
207 
208  template <typename T>
210  tmat3x2<T> const & m,
211  typename tmat3x2<T>::value_type const & s);
212 
213  template <typename T>
215  typename tmat3x2<T>::value_type const & s,
216  tmat3x2<T> const & m);
217 
218  // Unary constant operators
219  template <typename T>
221  tmat3x2<T> const & m);
222 
223  template <typename T>
225  tmat3x2<T> const & m,
226  int);
227 
228  template <typename T>
230  tmat3x2<T> const & m,
231  int);
232 } //namespace detail
233 
236 
243 
250 
257 
259 }//namespace glm
260 
261 #ifndef GLM_EXTERNAL_TEMPLATE
262 #include "type_mat3x2.inl"
263 #endif
264 
265 #endif //glm_core_type_mat3x2
GLM_FUNC_DECL tmat3x2< T > & operator+=(U const &s)
GLM_FUNC_DECL half operator--(half const &s, int)
Definition: type_half.inl:356
#define GLM_CONSTEXPR
Definition: _detail.hpp:479
Definition: type_mat2x2.hpp:45
Definition: type_mat2x2.hpp:48
Definition: type_mat2x2.hpp:42
GLM_FUNC_DECL tmat3x2()
Definition: type_mat3x2.inl:79
GLM_FUNC_DECL GLM_CONSTEXPR size_type length() const
Definition: type_mat3x2.inl:33
Definition: _detail.hpp:38
GLM_FUNC_DECL tmat3x2< T > & operator--()
Definition: type_mat3x2.inl:416
Definition: type_mat2x2.hpp:38
tvec3< T > row_type
Definition: type_mat3x2.hpp:58
T value_type
Definition: type_mat3x2.hpp:55
Definition: _swizzle.hpp:43
GLM_FUNC_DECL half operator+(half const &s1, half const &s2)
Definition: type_half.inl:330
static GLM_FUNC_DECL size_type col_size()
Definition: type_mat3x2.inl:39
static GLM_FUNC_DECL size_type row_size()
Definition: type_mat3x2.inl:45
detail::tmat3x2< highp_float > highp_mat3x2
Definition: type_mat3x2.hpp:256
GLM_FUNC_DECL half operator-(half const &s1, half const &s2)
Definition: type_half.inl:335
tmat2x3< T > transpose_type
Definition: type_mat3x2.hpp:60
GLM_FUNC_DECL half operator++(half const &s, int)
Definition: type_half.inl:361
GLM_FUNC_DECL tmat3x2< T > & operator/=(U const &s)
GLM_FUNC_DECL col_type & operator[](size_type i)
Definition: type_mat3x2.inl:56
Definition: type_mat2x2.hpp:39
tmat3x2< T > type
Definition: type_mat3x2.hpp:59
detail::tmat3x2< lowp_float > lowp_mat3x2
Definition: type_mat3x2.hpp:242
GLM_FUNC_DECL tmat3x2< T > & operator-=(U const &s)
GLM_FUNC_DECL tmat3x2< T > & operator=(tmat3x2< T > const &m)
Definition: type_mat3x2.inl:295
Definition: type_mat2x2.hpp:44
Definition: type_mat2x2.hpp:47
tvec2< T > col_type
Definition: type_mat3x2.hpp:57
Definition: type_mat2x2.hpp:41
std::size_t size_type
Definition: type_mat3x2.hpp:56
GLM_FUNC_DECL tmat3x2< T > & operator*=(U const &s)
GLM_FUNC_DECL half operator*(half const &s1, half const &s2)
Definition: type_half.inl:340
Definition: type_mat3x2.hpp:54
ctor
Definition: type_mat3x2.hpp:54
GLM_FUNC_DECL tmat3x2< T > & operator++()
Definition: type_mat3x2.inl:407
GLM_FUNC_DECL half operator/(half const &s1, half const &s2)
Definition: type_half.inl:345
Definition: type_mat2x2.hpp:46
Definition: type_mat2x2.hpp:49
Definition: type_mat2x2.hpp:43
detail::tmat3x2< mediump_float > mediump_mat3x2
Definition: type_mat3x2.hpp:249
#define GLM_FUNC_DECL
Definition: setup.hpp:678