0.9.7
matrix_major_storage.hpp
Go to the documentation of this file.
1 
43 #pragma once
44 
45 // Dependency:
46 #include "../glm.hpp"
47 
48 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
49 # pragma message("GLM: GLM_GTX_matrix_major_storage extension included")
50 #endif
51 
52 namespace glm
53 {
56 
59  template <typename T, precision P>
60  GLM_FUNC_DECL tmat2x2<T, P> rowMajor2(
61  tvec2<T, P> const & v1,
62  tvec2<T, P> const & v2);
63 
66  template <typename T, precision P>
67  GLM_FUNC_DECL tmat2x2<T, P> rowMajor2(
68  tmat2x2<T, P> const & m);
69 
72  template <typename T, precision P>
73  GLM_FUNC_DECL tmat3x3<T, P> rowMajor3(
74  tvec3<T, P> const & v1,
75  tvec3<T, P> const & v2,
76  tvec3<T, P> const & v3);
77 
80  template <typename T, precision P>
81  GLM_FUNC_DECL tmat3x3<T, P> rowMajor3(
82  tmat3x3<T, P> const & m);
83 
86  template <typename T, precision P>
87  GLM_FUNC_DECL tmat4x4<T, P> rowMajor4(
88  tvec4<T, P> const & v1,
89  tvec4<T, P> const & v2,
90  tvec4<T, P> const & v3,
91  tvec4<T, P> const & v4);
92 
95  template <typename T, precision P>
96  GLM_FUNC_DECL tmat4x4<T, P> rowMajor4(
97  tmat4x4<T, P> const & m);
98 
101  template <typename T, precision P>
102  GLM_FUNC_DECL tmat2x2<T, P> colMajor2(
103  tvec2<T, P> const & v1,
104  tvec2<T, P> const & v2);
105 
108  template <typename T, precision P>
109  GLM_FUNC_DECL tmat2x2<T, P> colMajor2(
110  tmat2x2<T, P> const & m);
111 
114  template <typename T, precision P>
115  GLM_FUNC_DECL tmat3x3<T, P> colMajor3(
116  tvec3<T, P> const & v1,
117  tvec3<T, P> const & v2,
118  tvec3<T, P> const & v3);
119 
122  template <typename T, precision P>
123  GLM_FUNC_DECL tmat3x3<T, P> colMajor3(
124  tmat3x3<T, P> const & m);
125 
128  template <typename T, precision P>
129  GLM_FUNC_DECL tmat4x4<T, P> colMajor4(
130  tvec4<T, P> const & v1,
131  tvec4<T, P> const & v2,
132  tvec4<T, P> const & v3,
133  tvec4<T, P> const & v4);
134 
137  template <typename T, precision P>
138  GLM_FUNC_DECL tmat4x4<T, P> colMajor4(
139  tmat4x4<T, P> const & m);
140 
142 }//namespace glm
143 
144 #include "matrix_major_storage.inl"
GLM_FUNC_DECL tmat2x2< T, P > colMajor2(tmat2x2< T, P > const &m)
Build a column major matrix from other matrix.
GLM_FUNC_DECL tmat4x4< T, P > colMajor4(tmat4x4< T, P > const &m)
Build a column major matrix from other matrix.
GLM_FUNC_DECL tmat4x4< T, P > rowMajor4(tmat4x4< T, P > const &m)
Build a row major matrix from other matrix.
GLM_FUNC_DECL tmat2x2< T, P > rowMajor2(tmat2x2< T, P > const &m)
Build a row major matrix from other matrix.
Definition: _noise.hpp:40
GLM_FUNC_DECL tmat3x3< T, P > rowMajor3(tmat3x3< T, P > const &m)
Build a row major matrix from other matrix.
GLM_FUNC_DECL tmat3x3< T, P > colMajor3(tmat3x3< T, P > const &m)
Build a column major matrix from other matrix.