17 #ifndef IGNITION_MATH_BOX_HH_ 18 #define IGNITION_MATH_BOX_HH_ 20 #include <ignition/math/config.hh> 26 #include "ignition/math/detail/WellOrderedVector.hh" 35 inline namespace IGNITION_MATH_VERSION_NAMESPACE {
50 template<
typename Precision>
54 public:
Box() =
default;
60 public:
Box(
const Precision _length,
61 const Precision _width,
62 const Precision _height);
69 public:
Box(
const Precision _length,
const Precision _width,
70 const Precision _height,
95 public:
virtual ~
Box() =
default;
114 public:
void SetSize(
const Precision _length,
115 const Precision _width,
116 const Precision _height);
138 public: Precision Volume()
const;
151 public: std::optional<Vector3<Precision>>
170 public: Precision DensityFromMass(
const Precision _mass)
const;
184 public:
bool SetDensityFromMass(
const Precision _mass);
224 #include "ignition/math/detail/Box.hh"
A class for inertial information about a rigid body consisting of the scalar mass and a 3x3 symmetric...
Definition: MassMatrix3.hh:45
A plane and related functions.
Definition: Plane.hh:38
Contains information about a single material.
Definition: Material.hh:65
Box< double > Boxd
Box with double precision.
Definition: Box.hh:216
Box< float > Boxf
Box with float precision.
Definition: Box.hh:220
A representation of a box. All units are in meters.
Definition: Box.hh:51
Box< int > Boxi
Box with integer precision.
Definition: Box.hh:212