0.9.6
matrix_major_storage.hpp
Go to the documentation of this file.
1 
39 #pragma once
40 
41 // Dependency:
42 #include "../glm.hpp"
43 
44 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
45 # pragma message("GLM: GLM_GTX_matrix_major_storage extension included")
46 #endif
47 
48 namespace glm
49 {
52 
55  template <typename T, precision P>
56  GLM_FUNC_DECL tmat2x2<T, P> rowMajor2(
57  tvec2<T, P> const & v1,
58  tvec2<T, P> const & v2);
59 
62  template <typename T, precision P>
63  GLM_FUNC_DECL tmat2x2<T, P> rowMajor2(
64  tmat2x2<T, P> const & m);
65 
68  template <typename T, precision P>
69  GLM_FUNC_DECL tmat3x3<T, P> rowMajor3(
70  tvec3<T, P> const & v1,
71  tvec3<T, P> const & v2,
72  tvec3<T, P> const & v3);
73 
76  template <typename T, precision P>
77  GLM_FUNC_DECL tmat3x3<T, P> rowMajor3(
78  tmat3x3<T, P> const & m);
79 
82  template <typename T, precision P>
83  GLM_FUNC_DECL tmat4x4<T, P> rowMajor4(
84  tvec4<T, P> const & v1,
85  tvec4<T, P> const & v2,
86  tvec4<T, P> const & v3,
87  tvec4<T, P> const & v4);
88 
91  template <typename T, precision P>
92  GLM_FUNC_DECL tmat4x4<T, P> rowMajor4(
93  tmat4x4<T, P> const & m);
94 
97  template <typename T, precision P>
98  GLM_FUNC_DECL tmat2x2<T, P> colMajor2(
99  tvec2<T, P> const & v1,
100  tvec2<T, P> const & v2);
101 
104  template <typename T, precision P>
105  GLM_FUNC_DECL tmat2x2<T, P> colMajor2(
106  tmat2x2<T, P> const & m);
107 
110  template <typename T, precision P>
111  GLM_FUNC_DECL tmat3x3<T, P> colMajor3(
112  tvec3<T, P> const & v1,
113  tvec3<T, P> const & v2,
114  tvec3<T, P> const & v3);
115 
118  template <typename T, precision P>
119  GLM_FUNC_DECL tmat3x3<T, P> colMajor3(
120  tmat3x3<T, P> const & m);
121 
124  template <typename T, precision P>
125  GLM_FUNC_DECL tmat4x4<T, P> colMajor4(
126  tvec4<T, P> const & v1,
127  tvec4<T, P> const & v2,
128  tvec4<T, P> const & v3,
129  tvec4<T, P> const & v4);
130 
133  template <typename T, precision P>
134  GLM_FUNC_DECL tmat4x4<T, P> colMajor4(
135  tmat4x4<T, P> const & m);
136 
138 }//namespace glm
139 
140 #include "matrix_major_storage.inl"
GLM_FUNC_DECL tmat4x4< T, P > rowMajor4(tmat4x4< 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 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 tmat2x2< T, P > colMajor2(tmat2x2< T, P > const &m)
Build a column major matrix from other matrix.
Definition: _noise.hpp:31
GLM_FUNC_DECL tmat3x3< T, P > colMajor3(tmat3x3< T, P > const &m)
Build a column major matrix from other matrix.