SPH
Functions
Rigid Namespace Reference

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

Detailed Description

Physics of rigid body.

Function Documentation

◆ parallelAxisTheorem()

INLINE SymmetricTensor Rigid::parallelAxisTheorem ( const SymmetricTensor I,
const Float  m,
const Vector a 
)

Computes the inertia tensor with respect to given point.

Parameters
IInertia tensor with respect to the center of mass
mTotal mass of the body
aTranslation vector with respect to the center of mass

Definition at line 70 of file Functions.h.

◆ sphereInertia()

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.