| 0.9.8

- Main Page
- Modules
- Files

- File List

matrix_major_storage.hpp
Go to the documentation of this file.
1
14 #pragma once
15
16 // Dependency:
17 #include "../glm.hpp"
18
19 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
20 # pragma message("GLM: GLM_GTX_matrix_major_storage extension included")
21 #endif
22
23 namespace glm
24 {
27
30 template <typename T, precision P>
31 GLM_FUNC_DECL tmat2x2<T, P> rowMajor2(
32 tvec2<T, P> const & v1,
33 tvec2<T, P> const & v2);
34
37 template <typename T, precision P>
38 GLM_FUNC_DECL tmat2x2<T, P> rowMajor2(
39 tmat2x2<T, P> const & m);
40
43 template <typename T, precision P>
44 GLM_FUNC_DECL tmat3x3<T, P> rowMajor3(
45 tvec3<T, P> const & v1,
46 tvec3<T, P> const & v2,
47 tvec3<T, P> const & v3);
48
51 template <typename T, precision P>
52 GLM_FUNC_DECL tmat3x3<T, P> rowMajor3(
53 tmat3x3<T, P> const & m);
54
57 template <typename T, precision P>
58 GLM_FUNC_DECL tmat4x4<T, P> rowMajor4(
59 tvec4<T, P> const & v1,
60 tvec4<T, P> const & v2,
61 tvec4<T, P> const & v3,
62 tvec4<T, P> const & v4);
63
66 template <typename T, precision P>
67 GLM_FUNC_DECL tmat4x4<T, P> rowMajor4(
68 tmat4x4<T, P> const & m);
69
72 template <typename T, precision P>
73 GLM_FUNC_DECL tmat2x2<T, P> colMajor2(
74 tvec2<T, P> const & v1,
75 tvec2<T, P> const & v2);
76
79 template <typename T, precision P>
80 GLM_FUNC_DECL tmat2x2<T, P> colMajor2(
81 tmat2x2<T, P> const & m);
82
85 template <typename T, precision P>
86 GLM_FUNC_DECL tmat3x3<T, P> colMajor3(
87 tvec3<T, P> const & v1,
88 tvec3<T, P> const & v2,
89 tvec3<T, P> const & v3);
90
93 template <typename T, precision P>
94 GLM_FUNC_DECL tmat3x3<T, P> colMajor3(
95 tmat3x3<T, P> const & m);
96
99 template <typename T, precision P>
100 GLM_FUNC_DECL tmat4x4<T, P> colMajor4(
101 tvec4<T, P> const & v1,
102 tvec4<T, P> const & v2,
103 tvec4<T, P> const & v3,
104 tvec4<T, P> const & v4);
105
108 template <typename T, precision P>
109 GLM_FUNC_DECL tmat4x4<T, P> colMajor4(
110 tmat4x4<T, P> const & m);
111
113 }//namespace glm
114
115 #include "matrix_major_storage.inl"
glm::colMajor4
GLM_FUNC_DECL tmat4x4< T, P > colMajor4(tmat4x4< T, P > const &m)
Build a column major matrix from other matrix.
glm::rowMajor2
GLM_FUNC_DECL tmat2x2< T, P > rowMajor2(tmat2x2< T, P > const &m)
Build a row major matrix from other matrix.
glm::rowMajor3
GLM_FUNC_DECL tmat3x3< T, P > rowMajor3(tmat3x3< T, P > const &m)
Build a row major matrix from other matrix.
glm::colMajor2
GLM_FUNC_DECL tmat2x2< T, P > colMajor2(tmat2x2< T, P > const &m)
Build a column major matrix from other matrix.
glm
Definition: _noise.hpp:11
glm::colMajor3
GLM_FUNC_DECL tmat3x3< T, P > colMajor3(tmat3x3< T, P > const &m)
Build a column major matrix from other matrix.
glm::rowMajor4
GLM_FUNC_DECL tmat4x4< T, P > rowMajor4(tmat4x4< T, P > const &m)
Build a row major matrix from other matrix.