GLM 0.9.5

- Main Page
- Related Pages
- Modules
- Namespaces
- Files

- File List

matrix_operation.hpp
Go to the documentation of this file.
1
38 #ifndef GLM_GTX_matrix_operation
39 #define GLM_GTX_matrix_operation
40
41 // Dependency:
42 #include "../glm.hpp"
43
44 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
45 # pragma message("GLM: GLM_GTX_matrix_operation extension included")
46 #endif
47
48 namespace glm
49 {
52
55 template <typename T, precision P>
56 detail::tmat2x2<T, P> diagonal2x2(
57 detail::tvec2<T, P> const & v);
58
61 template <typename T, precision P>
62 detail::tmat2x3<T, P> diagonal2x3(
63 detail::tvec2<T, P> const & v);
64
67 template <typename T, precision P>
68 detail::tmat2x4<T, P> diagonal2x4(
69 detail::tvec2<T, P> const & v);
70
73 template <typename T, precision P>
74 detail::tmat3x2<T, P> diagonal3x2(
75 detail::tvec2<T, P> const & v);
76
79 template <typename T, precision P>
80 detail::tmat3x3<T, P> diagonal3x3(
81 detail::tvec3<T, P> const & v);
82
85 template <typename T, precision P>
86 detail::tmat3x4<T, P> diagonal3x4(
87 detail::tvec3<T, P> const & v);
88
91 template <typename T, precision P>
92 detail::tmat4x2<T, P> diagonal4x2(
93 detail::tvec2<T, P> const & v);
94
97 template <typename T, precision P>
98 detail::tmat4x3<T, P> diagonal4x3(
99 detail::tvec3<T, P> const & v);
100
103 template <typename T, precision P>
104 detail::tmat4x4<T, P> diagonal4x4(
105 detail::tvec4<T, P> const & v);
106
108 }//namespace glm
109
110 #include "matrix_operation.inl"
111
112 #endif//GLM_GTX_matrix_operation
glm::diagonal4x3
detail::tmat4x3< T, P > diagonal4x3(detail::tvec3< T, P > const &v)
Build a diagonal matrix.
glm::diagonal2x3
detail::tmat2x3< T, P > diagonal2x3(detail::tvec2< T, P > const &v)
Build a diagonal matrix.
glm::diagonal3x4
detail::tmat3x4< T, P > diagonal3x4(detail::tvec3< T, P > const &v)
Build a diagonal matrix.
glm::diagonal3x2
detail::tmat3x2< T, P > diagonal3x2(detail::tvec2< T, P > const &v)
Build a diagonal matrix.
glm::diagonal4x4
detail::tmat4x4< T, P > diagonal4x4(detail::tvec4< T, P > const &v)
Build a diagonal matrix.
glm::diagonal3x3
detail::tmat3x3< T, P > diagonal3x3(detail::tvec3< T, P > const &v)
Build a diagonal matrix.
glm::diagonal2x4
detail::tmat2x4< T, P > diagonal2x4(detail::tvec2< T, P > const &v)
Build a diagonal matrix.
glm::diagonal4x2
detail::tmat4x2< T, P > diagonal4x2(detail::tvec2< T, P > const &v)
Build a diagonal matrix.
glm::diagonal2x2
detail::tmat2x2< T, P > diagonal2x2(detail::tvec2< T, P > const &v)
Build a diagonal matrix.