| 0.9.9 API documenation

- Main Page
- Modules
- Files

- File List

matrix_operation.hpp
Go to the documentation of this file.
1
13 #pragma once
14
15 // Dependency:
16 #include "../glm.hpp"
17
18 #ifndef GLM_ENABLE_EXPERIMENTAL
19 # error "GLM: GLM_GTX_matrix_operation is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
20 #endif
21
22 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
23 # pragma message("GLM: GLM_GTX_matrix_operation extension included")
24 #endif
25
26 namespace glm
27 {
30
33 template<typename T, qualifier Q>
34 GLM_FUNC_DECL mat<2, 2, T, Q> diagonal2x2(
35 vec<2, T, Q> const& v);
36
39 template<typename T, qualifier Q>
40 GLM_FUNC_DECL mat<2, 3, T, Q> diagonal2x3(
41 vec<2, T, Q> const& v);
42
45 template<typename T, qualifier Q>
46 GLM_FUNC_DECL mat<2, 4, T, Q> diagonal2x4(
47 vec<2, T, Q> const& v);
48
51 template<typename T, qualifier Q>
52 GLM_FUNC_DECL mat<3, 2, T, Q> diagonal3x2(
53 vec<2, T, Q> const& v);
54
57 template<typename T, qualifier Q>
58 GLM_FUNC_DECL mat<3, 3, T, Q> diagonal3x3(
59 vec<3, T, Q> const& v);
60
63 template<typename T, qualifier Q>
64 GLM_FUNC_DECL mat<3, 4, T, Q> diagonal3x4(
65 vec<3, T, Q> const& v);
66
69 template<typename T, qualifier Q>
70 GLM_FUNC_DECL mat<4, 2, T, Q> diagonal4x2(
71 vec<2, T, Q> const& v);
72
75 template<typename T, qualifier Q>
76 GLM_FUNC_DECL mat<4, 3, T, Q> diagonal4x3(
77 vec<3, T, Q> const& v);
78
81 template<typename T, qualifier Q>
82 GLM_FUNC_DECL mat<4, 4, T, Q> diagonal4x4(
83 vec<4, T, Q> const& v);
84
86 }//namespace glm
87
88 #include "matrix_operation.inl"
glm::diagonal3x4
GLM_FUNC_DECL mat< 3, 4, T, Q > diagonal3x4(vec< 3, T, Q > const &v)
Build a diagonal matrix.
glm::diagonal3x2
GLM_FUNC_DECL mat< 3, 2, T, Q > diagonal3x2(vec< 2, T, Q > const &v)
Build a diagonal matrix.
glm::diagonal2x2
GLM_FUNC_DECL mat< 2, 2, T, Q > diagonal2x2(vec< 2, T, Q > const &v)
Build a diagonal matrix.
glm
Definition: common.hpp:20
glm::diagonal4x2
GLM_FUNC_DECL mat< 4, 2, T, Q > diagonal4x2(vec< 2, T, Q > const &v)
Build a diagonal matrix.
glm::diagonal2x3
GLM_FUNC_DECL mat< 2, 3, T, Q > diagonal2x3(vec< 2, T, Q > const &v)
Build a diagonal matrix.
glm::diagonal4x3
GLM_FUNC_DECL mat< 4, 3, T, Q > diagonal4x3(vec< 3, T, Q > const &v)
Build a diagonal matrix.
glm::diagonal4x4
GLM_FUNC_DECL mat< 4, 4, T, Q > diagonal4x4(vec< 4, T, Q > const &v)
Build a diagonal matrix.
glm::diagonal2x4
GLM_FUNC_DECL mat< 2, 4, T, Q > diagonal2x4(vec< 2, T, Q > const &v)
Build a diagonal matrix.
glm::diagonal3x3
GLM_FUNC_DECL mat< 3, 3, T, Q > diagonal3x3(vec< 3, T, Q > const &v)
Build a diagonal matrix.