|
SPH
|
Physics of rigid body. More...
Functions | |
| INLINE SymmetricTensor | sphereInertia (const Float m, const Float r) |
| Computes the inertia tensor of a homogeneous sphere. More... | |
| INLINE SymmetricTensor | parallelAxisTheorem (const SymmetricTensor &I, const Float m, const Vector &a) |
| Computes the inertia tensor with respect to given point. More... | |
Physics of rigid body.
| INLINE SymmetricTensor Rigid::parallelAxisTheorem | ( | const SymmetricTensor & | I, |
| const Float | m, | ||
| const Vector & | a | ||
| ) |
Computes the inertia tensor with respect to given point.
| I | Inertia tensor with respect to the center of mass |
| m | Total mass of the body |
| a | Translation vector with respect to the center of mass |
Definition at line 70 of file Functions.h.
| INLINE SymmetricTensor Rigid::sphereInertia | ( | const Float | m, |
| const Float | r | ||
| ) |
Computes the inertia tensor of a homogeneous sphere.
Definition at line 61 of file Functions.h.