| 0.9.8

- 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 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
19 # pragma message("GLM: GLM_GTX_matrix_operation extension included")
20 #endif
21
22 namespace glm
23 {
26
29 template <typename T, precision P>
30 GLM_FUNC_DECL tmat2x2<T, P> diagonal2x2(
31 tvec2<T, P> const & v);
32
35 template <typename T, precision P>
36 GLM_FUNC_DECL tmat2x3<T, P> diagonal2x3(
37 tvec2<T, P> const & v);
38
41 template <typename T, precision P>
42 GLM_FUNC_DECL tmat2x4<T, P> diagonal2x4(
43 tvec2<T, P> const & v);
44
47 template <typename T, precision P>
48 GLM_FUNC_DECL tmat3x2<T, P> diagonal3x2(
49 tvec2<T, P> const & v);
50
53 template <typename T, precision P>
54 GLM_FUNC_DECL tmat3x3<T, P> diagonal3x3(
55 tvec3<T, P> const & v);
56
59 template <typename T, precision P>
60 GLM_FUNC_DECL tmat3x4<T, P> diagonal3x4(
61 tvec3<T, P> const & v);
62
65 template <typename T, precision P>
66 GLM_FUNC_DECL tmat4x2<T, P> diagonal4x2(
67 tvec2<T, P> const & v);
68
71 template <typename T, precision P>
72 GLM_FUNC_DECL tmat4x3<T, P> diagonal4x3(
73 tvec3<T, P> const & v);
74
77 template <typename T, precision P>
78 GLM_FUNC_DECL tmat4x4<T, P> diagonal4x4(
79 tvec4<T, P> const & v);
80
82 }//namespace glm
83
84 #include "matrix_operation.inl"
glm::diagonal4x4
GLM_FUNC_DECL tmat4x4< T, P > diagonal4x4(tvec4< T, P > const &v)
Build a diagonal matrix.
glm
Definition: _noise.hpp:11
glm::diagonal2x4
GLM_FUNC_DECL tmat2x4< T, P > diagonal2x4(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::diagonal4x2
GLM_FUNC_DECL tmat4x2< T, P > diagonal4x2(tvec2< 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.
glm::diagonal2x2
GLM_FUNC_DECL tmat2x2< T, P > diagonal2x2(tvec2< 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::diagonal3x4
GLM_FUNC_DECL tmat3x4< T, P > diagonal3x4(tvec3< T, P > const &v)
Build a diagonal matrix.
glm::diagonal4x3
GLM_FUNC_DECL tmat4x3< T, P > diagonal4x3(tvec3< T, P > const &v)
Build a diagonal matrix.