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...

 

Detailed Description

Function Documentation

◆ HoopThinInertia() [1/3]

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.

Parameters
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.
See also
CircleSurfaceArea() for area of a circle.
CircleCircumference() for circumference of a circle.
HoopThinInertia() for inertial tensor of a thin hoop.
HoopInertia() for inertial tensor of a hoop.
DiskThinInertia() for inertial tensor of a thin disk.
DiskInertia() for inertial tensor of a disk.
CylinderInertia() for inertial tensor of a cylinder.
SphereInertia() for inertial tensor of a sphere.

◆ HoopThinInertia() [2/3]

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.

Parameters
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.
See also
CircleSurfaceArea() for area of a circle.
CircleCircumference() for circumference of a circle.
HoopThinInertia() for inertial tensor of a thin hoop.
HoopInertia() for inertial tensor of a hoop.
DiskThinInertia() for inertial tensor of a thin disk.
DiskInertia() for inertial tensor of a disk.
CylinderInertia() for inertial tensor of a cylinder.
SphereInertia() for inertial tensor of a sphere.

◆ HoopThinInertia() [3/3]

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.

Parameters
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.
See also
CircleSurfaceArea() for area of a circle.
CircleCircumference() for circumference of a circle.
HoopThinInertia() for inertial tensor of a thin hoop.
HoopInertia() for inertial tensor of a hoop.
DiskThinInertia() for inertial tensor of a thin disk.
DiskInertia() for inertial tensor of a disk.
CylinderInertia() for inertial tensor of a cylinder.
SphereInertia() for inertial tensor of a sphere.