Flow Visualisation
inertia.hpp
Go to the documentation of this file.
1 
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
Definition: _detail.hpp:38
detail::tmat4x4< T > sphereInertia4(T const &Mass, T const &Radius)
Definition: inertia.inl:104
Definition: _swizzle.hpp:43
detail::tmat4x4< T > diskInertia4(T const &Mass, T const &Radius)
Definition: inertia.inl:55
detail::tmat3x3< T > sphereInertia3(T const &Mass, T const &Radius)
Definition: inertia.inl:93
detail::tmat4x4< T > boxInertia4(T const &Mass, detail::tvec3< T > const &Scale)
Definition: inertia.inl:28
detail::tmat4x4< T > ballInertia4(T const &Mass, T const &Radius)
Definition: inertia.inl:80
detail::tmat3x3< T > diskInertia3(T const &Mass, T const &Radius)
Definition: inertia.inl:42
detail::tmat3x3< T > boxInertia3(T const &Mass, detail::tvec3< T > const &Scale)
Definition: inertia.inl:14
detail::tmat3x3< T > ballInertia3(T const &Mass, T const &Radius)
Definition: inertia.inl:69