- Main Page
- Related Pages
- Modules
- Files

- File List

inertia.hpp
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 #ifndef GLM_GTX_inertia
40 #define GLM_GTX_inertia GLM_VERSION
41
42 // Dependency:
43 #include "../glm.hpp"
44
45 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
46 # pragma message("GLM: GLM_GTX_inertia extension included")
47 #endif
48
49 namespace glm
50 {
53
56 template <typename T>
57 detail::tmat3x3<T> boxInertia3(
58 T const & Mass,
59 detail::tvec3<T> const & Scale);
60
63 template <typename T>
64 detail::tmat4x4<T> boxInertia4(
65 T const & Mass,
66 detail::tvec3<T> const & Scale);
67
70 template <typename T>
71 detail::tmat3x3<T> diskInertia3(
72 T const & Mass,
73 T const & Radius);
74
77 template <typename T>
78 detail::tmat4x4<T> diskInertia4(
79 T const & Mass,
80 T const & Radius);
81
84 template <typename T>
85 detail::tmat3x3<T> ballInertia3(
86 T const & Mass,
87 T const & Radius);
88
91 template <typename T>
92 detail::tmat4x4<T> ballInertia4(
93 T const & Mass,
94 T const & Radius);
95
98 template <typename T>
99 detail::tmat3x3<T> sphereInertia3(
100 T const & Mass,
101 T const & Radius);
102
105 template <typename T>
106 detail::tmat4x4<T> sphereInertia4(
107 T const & Mass,
108 T const & Radius);
109
111 }// namespace glm
112
113 #include "inertia.inl"
114
115 #endif//GLM_GTX_inertia