playrho::detail::MassData< N > Struct Template Reference
Mass data. More...
#include <MassData.hpp>
Public Attributes | |
Vector< Length, N > | center = Vector<Length, N>{} |
Position of the shape's centroid relative to the shape's origin. More... | |
NonNegative< Mass > | mass = NonNegative<Mass>{0_kg} |
Mass of the shape in kilograms. More... | |
NonNegative< RotInertia > | I = NonNegative<RotInertia>{0 * 1_m2 * 1_kg / SquareRadian} |
Rotational inertia, a.k.a. moment of inertia. More... | |
Related Functions | |
(Note that these are not member functions.) | |
template<std::size_t N> | |
PLAYRHO_CONSTEXPR bool | operator== (MassData< N > lhs, MassData< N > rhs) |
Equality operator for mass data. More... | |
template<std::size_t N> | |
PLAYRHO_CONSTEXPR bool | operator!= (MassData< N > lhs, MassData< N > rhs) |
Inequality operator for mass data. More... | |
Detailed Description
template<std::size_t N>
struct playrho::detail::MassData< N >
Mass data.
This holds the mass data computed for a shape.
- Examples
- Body.cpp.
Definition at line 37 of file MassData.hpp.
Friends And Related Function Documentation
◆ operator==()
template<std::size_t N>
|
related |
Equality operator for mass data.
Definition at line 56 of file MassData.hpp.
◆ operator!=()
template<std::size_t N>
|
related |
Inequality operator for mass data.
Definition at line 64 of file MassData.hpp.
Member Data Documentation
◆ center
template<std::size_t N>
Vector<Length, N> playrho::detail::MassData< N >::center = Vector<Length, N>{} |
Position of the shape's centroid relative to the shape's origin.
Definition at line 40 of file MassData.hpp.
◆ mass
template<std::size_t N>
NonNegative<Mass> playrho::detail::MassData< N >::mass = NonNegative<Mass>{0_kg} |
Mass of the shape in kilograms.
Definition at line 43 of file MassData.hpp.
◆ I
template<std::size_t N>
NonNegative<RotInertia> playrho::detail::MassData< N >::I = NonNegative<RotInertia>{0 * 1_m2 * 1_kg / SquareRadian} |
Rotational inertia, a.k.a. moment of inertia.
This is the rotational inertia of the shape about the local origin.
Definition at line 48 of file MassData.hpp.
The documentation for this struct was generated from the following file:
- Collision/MassData.hpp