MassData.hpp File Reference

Go to the source code of this file.

Classes

struct  playrho::detail::MassData< N >
 Mass data. More...
 

Namespaces

 playrho
 
 playrho::detail
 
 playrho::d2
 

Typedefs

using playrho::d2::MassData = detail::MassData< 2 >
 Mass data alias for 2-D objects. More...
 

Functions

template<std::size_t N>
PLAYRHO_CONSTEXPR bool playrho::detail::operator== (MassData< N > lhs, MassData< N > rhs)
 Equality operator for mass data. More...
 
template<std::size_t N>
PLAYRHO_CONSTEXPR bool playrho::detail::operator!= (MassData< N > lhs, MassData< N > rhs)
 Inequality operator for mass data. More...
 
MassData playrho::d2::GetMassData (Length r, NonNegative< AreaDensity > density, Length2 location)
 Computes the mass data for a circular shape. More...
 
MassData playrho::d2::GetMassData (Length r, NonNegative< AreaDensity > density, Length2 v0, Length2 v1)
 Computes the mass data for a linear shape. More...
 
MassData playrho::d2::GetMassData (Length vertexRadius, NonNegative< AreaDensity > density, Span< const Length2 > vertices)
 Gets the mass data for the given collection of vertices with the given properties. More...
 
MassData playrho::d2::GetMassData (const Fixture &f)
 Computes the mass data for the given fixture. More...
 
MassData playrho::d2::ComputeMassData (const Body &body) noexcept
 Computes the body's mass data. More...
 
MassData playrho::d2::GetMassData (const Body &body) noexcept
 Gets the mass data of the body. More...
 

Detailed Description

Declaration of the MassData structure and associated free functions.

Definition in file MassData.hpp.