0.9.9 API documenation
matrix_major_storage.hpp
Go to the documentation of this file.
1 
14 #pragma once
15 
16 // Dependency:
17 #include "../glm.hpp"
18 
19 #ifndef GLM_ENABLE_EXPERIMENTAL
20 # error "GLM: GLM_GTX_matrix_major_storage is an experimetal extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
21 #endif
22 
23 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
24 # pragma message("GLM: GLM_GTX_matrix_major_storage extension included")
25 #endif
26 
27 namespace glm
28 {
31 
34  template <typename T, precision P>
35  GLM_FUNC_DECL tmat2x2<T, P> rowMajor2(
36  tvec2<T, P> const & v1,
37  tvec2<T, P> const & v2);
38 
41  template <typename T, precision P>
42  GLM_FUNC_DECL tmat2x2<T, P> rowMajor2(
43  tmat2x2<T, P> const & m);
44 
47  template <typename T, precision P>
48  GLM_FUNC_DECL tmat3x3<T, P> rowMajor3(
49  tvec3<T, P> const & v1,
50  tvec3<T, P> const & v2,
51  tvec3<T, P> const & v3);
52 
55  template <typename T, precision P>
56  GLM_FUNC_DECL tmat3x3<T, P> rowMajor3(
57  tmat3x3<T, P> const & m);
58 
61  template <typename T, precision P>
62  GLM_FUNC_DECL tmat4x4<T, P> rowMajor4(
63  tvec4<T, P> const & v1,
64  tvec4<T, P> const & v2,
65  tvec4<T, P> const & v3,
66  tvec4<T, P> const & v4);
67 
70  template <typename T, precision P>
71  GLM_FUNC_DECL tmat4x4<T, P> rowMajor4(
72  tmat4x4<T, P> const & m);
73 
76  template <typename T, precision P>
77  GLM_FUNC_DECL tmat2x2<T, P> colMajor2(
78  tvec2<T, P> const & v1,
79  tvec2<T, P> const & v2);
80 
83  template <typename T, precision P>
84  GLM_FUNC_DECL tmat2x2<T, P> colMajor2(
85  tmat2x2<T, P> const & m);
86 
89  template <typename T, precision P>
90  GLM_FUNC_DECL tmat3x3<T, P> colMajor3(
91  tvec3<T, P> const & v1,
92  tvec3<T, P> const & v2,
93  tvec3<T, P> const & v3);
94 
97  template <typename T, precision P>
98  GLM_FUNC_DECL tmat3x3<T, P> colMajor3(
99  tmat3x3<T, P> const & m);
100 
103  template <typename T, precision P>
104  GLM_FUNC_DECL tmat4x4<T, P> colMajor4(
105  tvec4<T, P> const & v1,
106  tvec4<T, P> const & v2,
107  tvec4<T, P> const & v3,
108  tvec4<T, P> const & v4);
109 
112  template <typename T, precision P>
113  GLM_FUNC_DECL tmat4x4<T, P> colMajor4(
114  tmat4x4<T, P> const & m);
115 
117 }//namespace glm
118 
119 #include "matrix_major_storage.inl"
GLM_FUNC_DECL tmat4x4< T, P > colMajor4(tmat4x4< T, P > const &m)
Build a column 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.
GLM_FUNC_DECL tmat3x3< T, P > rowMajor3(tmat3x3< T, P > const &m)
Build a row major matrix from other matrix.
GLM_FUNC_DECL tmat2x2< T, P > colMajor2(tmat2x2< T, P > const &m)
Build a column major matrix from other matrix.
Definition: _noise.hpp:11
GLM_FUNC_DECL tmat3x3< T, P > colMajor3(tmat3x3< 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.