0.9.7: matrix_operation.hpp Source File

| 0.9.7

- Main Page
- Modules
- Files

- File List

matrix_operation.hpp
Go to the documentation of this file.
1
42 #pragma once
43
44 // Dependency:
45 #include "../glm.hpp"
46
47 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
48 # pragma message("GLM: GLM_GTX_matrix_operation extension included")
49 #endif
50
51 namespace glm
52 {
55
58 template <typename T, precision P>
59 GLM_FUNC_DECL tmat2x2<T, P> diagonal2x2(
60 tvec2<T, P> const & v);
61
64 template <typename T, precision P>
65 GLM_FUNC_DECL tmat2x3<T, P> diagonal2x3(
66 tvec2<T, P> const & v);
67
70 template <typename T, precision P>
71 GLM_FUNC_DECL tmat2x4<T, P> diagonal2x4(
72 tvec2<T, P> const & v);
73
76 template <typename T, precision P>
77 GLM_FUNC_DECL tmat3x2<T, P> diagonal3x2(
78 tvec2<T, P> const & v);
79
82 template <typename T, precision P>
83 GLM_FUNC_DECL tmat3x3<T, P> diagonal3x3(
84 tvec3<T, P> const & v);
85
88 template <typename T, precision P>
89 GLM_FUNC_DECL tmat3x4<T, P> diagonal3x4(
90 tvec3<T, P> const & v);
91
94 template <typename T, precision P>
95 GLM_FUNC_DECL tmat4x2<T, P> diagonal4x2(
96 tvec2<T, P> const & v);
97
100 template <typename T, precision P>
101 GLM_FUNC_DECL tmat4x3<T, P> diagonal4x3(
102 tvec3<T, P> const & v);
103
106 template <typename T, precision P>
107 GLM_FUNC_DECL tmat4x4<T, P> diagonal4x4(
108 tvec4<T, P> const & v);
109
111 }//namespace glm
112
113 #include "matrix_operation.inl"
glm::diagonal3x4
GLM_FUNC_DECL tmat3x4< T, P > diagonal3x4(tvec3< T, P > const &v)
Build a diagonal matrix.
glm::diagonal3x2
GLM_FUNC_DECL tmat3x2< T, P > diagonal3x2(tvec2< T, P > const &v)
Build a diagonal matrix.
glm::diagonal4x2
GLM_FUNC_DECL tmat4x2< T, P > diagonal4x2(tvec2< T, P > const &v)
Build a diagonal matrix.
glm::diagonal2x4
GLM_FUNC_DECL tmat2x4< T, P > diagonal2x4(tvec2< T, P > const &v)
Build a diagonal matrix.
glm
Definition: _noise.hpp:40
glm::diagonal4x3
GLM_FUNC_DECL tmat4x3< T, P > diagonal4x3(tvec3< T, P > const &v)
Build a diagonal matrix.
glm::diagonal4x4
GLM_FUNC_DECL tmat4x4< T, P > diagonal4x4(tvec4< T, P > const &v)
Build a diagonal matrix.
glm::diagonal2x2
GLM_FUNC_DECL tmat2x2< T, P > diagonal2x2(tvec2< T, P > const &v)
Build a diagonal matrix.
glm::diagonal3x3
GLM_FUNC_DECL tmat3x3< T, P > diagonal3x3(tvec3< T, P > const &v)
Build a diagonal matrix.
glm::diagonal2x3
GLM_FUNC_DECL tmat2x3< T, P > diagonal2x3(tvec2< T, P > const &v)
Build a diagonal matrix.