|
EGXPhys
|
Functions | |
| template<typename T , typename T2 > | |
| void | EGXMath::HoopThinInertia (const T mass, const T radius, T2(&matrix)[9]) |
| Finds the moment of inertia tensor, \(I_{hoop}\) of a hoop with radius, \(r\), and mass \(m\) that is infinitly thin. \[ I_{hoop}=\begin{bmatrix} \frac{1}{2}m\ r^2 & 0 & 0\\ 0 & \frac{1}{2}m\ r^2 & 0\\ 0 & 0 & m\ r^2 \end{bmatrix} \] See https://en.wikipedia.org/wiki/List_of_moments_of_inertia and http://scienceworld.wolfram.com/physics/MomentofInertiaHoop.html. More... | |
| template<typename T , typename T2 > | |
| void | EGXMath::HoopThinInertia (const T mass, const T radius, std::vector< T2 > &matrix) |
| Finds the moment of inertia tensor, \(I_{hoop}\) of a hoop with radius, \(r\), and mass \(m\) that is infinitly thin. \[ I_{hoop}=\begin{bmatrix} \frac{1}{2}m\ r^2 & 0 & 0\\ 0 & \frac{1}{2}m\ r^2 & 0\\ 0 & 0 & m\ r^2 \end{bmatrix} \] See https://en.wikipedia.org/wiki/List_of_moments_of_inertia and http://scienceworld.wolfram.com/physics/MomentofInertiaHoop.html. More... | |
| template<typename T > | |
| void | EGXMath::HoopThinInertia (const T mass, const T radius, glm::mat3 &matrix) |
| Finds the moment of inertia tensor, \(I_{hoop}\) of a hoop with radius, \(r\), and mass \(m\) that is infinitly thin. \[ I_{hoop}=\begin{bmatrix} \frac{1}{2}m\ r^2 & 0 & 0\\ 0 & \frac{1}{2}m\ r^2 & 0\\ 0 & 0 & m\ r^2 \end{bmatrix} \] See https://en.wikipedia.org/wiki/List_of_moments_of_inertia and http://scienceworld.wolfram.com/physics/MomentofInertiaHoop.html. More... | |
| void EGXMath::HoopThinInertia | ( | const T | mass, |
| const T | radius, | ||
| T2(&) | matrix[9] | ||
| ) |
Finds the moment of inertia tensor, \(I_{hoop}\) of a hoop with radius, \(r\), and mass \(m\) that is infinitly thin.
\[ I_{hoop}=\begin{bmatrix} \frac{1}{2}m\ r^2 & 0 & 0\\ 0 & \frac{1}{2}m\ r^2 & 0\\ 0 & 0 & m\ r^2 \end{bmatrix} \]
See https://en.wikipedia.org/wiki/List_of_moments_of_inertia and http://scienceworld.wolfram.com/physics/MomentofInertiaHoop.html.
| mass | \( m\ (kg)\) is the mass of the hoop. |
| radius | \( r\ (m)\) is the radius of the hoop. |
| matrix | \( I_{hoop}\ (kg\ m^2)\) is the moment of inertia tensor matrix. |
| void EGXMath::HoopThinInertia | ( | const T | mass, |
| const T | radius, | ||
| std::vector< T2 > & | matrix | ||
| ) |
Finds the moment of inertia tensor, \(I_{hoop}\) of a hoop with radius, \(r\), and mass \(m\) that is infinitly thin.
\[ I_{hoop}=\begin{bmatrix} \frac{1}{2}m\ r^2 & 0 & 0\\ 0 & \frac{1}{2}m\ r^2 & 0\\ 0 & 0 & m\ r^2 \end{bmatrix} \]
See https://en.wikipedia.org/wiki/List_of_moments_of_inertia and http://scienceworld.wolfram.com/physics/MomentofInertiaHoop.html.
| mass | \( m\ (kg)\) is the mass of the hoop. |
| radius | \( r\ (m)\) is the radius of the hoop. |
| matrix | \( I_{hoop}\ (kg\ m^2)\) is the moment of inertia tensor matrix. |
| void EGXMath::HoopThinInertia | ( | const T | mass, |
| const T | radius, | ||
| glm::mat3 & | matrix | ||
| ) |
Finds the moment of inertia tensor, \(I_{hoop}\) of a hoop with radius, \(r\), and mass \(m\) that is infinitly thin.
\[ I_{hoop}=\begin{bmatrix} \frac{1}{2}m\ r^2 & 0 & 0\\ 0 & \frac{1}{2}m\ r^2 & 0\\ 0 & 0 & m\ r^2 \end{bmatrix} \]
See https://en.wikipedia.org/wiki/List_of_moments_of_inertia and http://scienceworld.wolfram.com/physics/MomentofInertiaHoop.html.
| mass | \( m\ (kg)\) is the mass of the hoop. |
| radius | \( r\ (m)\) is the radius of the hoop. |
| matrix | \( I_{hoop}\ (kg\ m^2)\) is the moment of inertia tensor matrix. |