inertia.hpp
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 
00033 
00034 
00035 
00036 
00037 
00038 
00039 #ifndef GLM_GTX_inertia
00040 #define GLM_GTX_inertia 50
00041 
00042 // Dependency:
00043 #include "../glm.hpp"
00044 
00045 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
00046 #       pragma message("GLM: GLM_GTX_inertia extension included")
00047 #endif
00048 
00049 namespace glm
00050 {
00053 
00056         template <typename T> 
00057         detail::tmat3x3<T> boxInertia3(
00058                 const T Mass, 
00059                 const detail::tvec3<T>& Scale);
00060                 
00063         template <typename T> 
00064         detail::tmat4x4<T> boxInertia4(
00065                 const T Mass, 
00066                 const detail::tvec3<T>& Scale);
00067                 
00070         template <typename T> 
00071         detail::tmat3x3<T> diskInertia3(
00072                 const T Mass, 
00073                 const T Radius);
00074 
00077         template <typename T> 
00078         detail::tmat4x4<T> diskInertia4(
00079                 const T Mass, 
00080                 const T Radius);
00081 
00084         template <typename T> 
00085         detail::tmat3x3<T> ballInertia3(
00086                 const T Mass, 
00087                 const T Radius);
00088                 
00091         template <typename T> 
00092         detail::tmat4x4<T> ballInertia4(
00093                 const T Mass, 
00094                 const T Radius);
00095 
00098         template <typename T> 
00099         detail::tmat3x3<T> sphereInertia3(
00100                 const T Mass, 
00101                 const T Radius);
00102 
00105         template <typename T> 
00106         detail::tmat4x4<T> sphereInertia4(
00107                 const T Mass, 
00108                 const T Radius);
00109 
00111 }// namespace glm
00112 
00113 #include "inertia.inl"
00114 
00115 #endif//GLM_GTX_inertia