PlayRho  1.1.0
An Interactive Real-Time-Oriented C++ Physics Engine & Library
playrho::detail::MassData< N > Struct Template Reference

Mass data. More...

#include <MassData.hpp>

Collaboration diagram for playrho::detail::MassData< N >:
[legend]

Public Attributes

Vector< Length, N > center = Vector<Length, N>{}
 Position of the shape's centroid relative to the shape's origin.
 
NonNegative< Massmass = NonNegative<Mass>{0_kg}
 Mass of the shape in kilograms.
 
NonNegative< RotInertiaI = 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>
constexpr bool operator== (MassData< N > lhs, MassData< N > rhs)
 Equality operator for mass data.
 
template<std::size_t N>
constexpr bool operator!= (MassData< N > lhs, MassData< N > rhs)
 Inequality operator for mass data.
 

Detailed Description

template<std::size_t N>
struct playrho::detail::MassData< N >

Mass data.

This holds the mass data computed for a shape.

Examples
World.cpp, and WorldBody.cpp.

Member Data Documentation

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

See also
https://en.wikipedia.org/wiki/Moment_of_inertia

Referenced by playrho::detail::operator==(), and playrho::d2::SetMassData().


The documentation for this struct was generated from the following file: