Go to the documentation of this file.
17 #ifndef _GAZEBO_COMMON_MATERIALDENSITY_HH_
18 #define _GAZEBO_COMMON_MATERIALDENSITY_HH_
23 #include <ignition/math/Helpers.hh>
96 public:
static const std::map<MaterialType, double> &
Materials();
102 public:
static double Density(
const std::string &_material);
117 public:
static std::tuple<MaterialType, double>
Nearest(
119 const double _epsilon = ignition::math::MAX_D);
128 const double _epsilon = ignition::math::MAX_D);
131 private:
static std::map<MaterialType, double> materials;
MaterialType
Types of materials.
Definition: MaterialDensity.hh:34
static double Density(const MaterialType _material)
Return the density of a material.
Forward declarations for the common classes.
Definition: Animation.hh:27
static double Density(const std::string &_material)
Return the density of the given material name, or -1 if the material is not found.
Encapsulates density types.
Definition: MaterialDensity.hh:93
common
Definition: FuelModelDatabase.hh:37
static std::tuple< MaterialType, double > Nearest(const double _value, const double _epsilon=ignition::math::MAX_D)
Return the material with the closest density value within _epsilon, or MATERIAL_TYPE_END if not found...
static const std::map< MaterialType, double > & Materials()
Accessor for retrieving density entries.
static MaterialType NearestMaterial(const double _value, const double _epsilon=ignition::math::MAX_D)
Return the material with the closest density value within _epsilon, or MATERIAL_TYPE_END if not found...