PlayRho  2.0.0
An interactive physics engine & library.
MassData.hpp File Reference

Declaration of the MassData structure and associated free functions. More...

#include <cstdlib>
#include <playrho/NonNegative.hpp>
#include <playrho/Span.hpp>
#include <playrho/Units.hpp>
#include <playrho/Vector.hpp>
#include <playrho/Vector2.hpp>
Include dependency graph for MassData.hpp:
This graph shows which files directly or indirectly include this file:

Classes

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

Namespaces

 playrho
 
 playrho::d2
 
 playrho::detail
 

Typedefs

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

Functions

MassData playrho::d2::GetMassData (Length r, NonNegative< AreaDensity > density, const Length2 &location)
 Computes the mass data for a circular shape. More...
 
MassData playrho::d2::GetMassData (Length r, NonNegative< AreaDensity > density, const Length2 &v0, const 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.
 
template<std::size_t N>
constexpr bool playrho::detail::operator!= (MassData< N > lhs, MassData< N > rhs)
 Inequality operator for mass data.
 
template<std::size_t N>
constexpr bool playrho::detail::operator== (MassData< N > lhs, MassData< N > rhs)
 Equality operator for mass data.
 

Detailed Description

Declaration of the MassData structure and associated free functions.