detail/Box.hh
Go to the documentation of this file.
void SetSize(const math::Vector3< Precision > &_size)
Set the size of the box.
Precision Volume() const
Get the volume of the box in m^3.
Definition: detail/Box.hh:111
bool operator!=(const Box< Precision > &_b) const
Inequality test operator.
Definition: detail/Box.hh:104
math::Vector3< Precision > Size() const
Get the size of the box.
Definition: detail/Box.hh:60
A class for inertial information about a rigid body consisting of the scalar mass and a 3x3 symmetric...
Definition: MassMatrix3.hh:45
void SetMaterial(const Material &_mat)
Set the material associated with this box.
Definition: detail/Box.hh:90
bool operator==(const Box< Precision > &_b) const
Equality test operator.
Definition: detail/Box.hh:97
Precision DensityFromMass(const Precision _mass) const
Compute the box's density given a mass value. The box is assumed to be solid with uniform density...
Definition: detail/Box.hh:118
The Vector3 class represents the generic vector containing 3 elements. Since it's commonly used to ke...
Definition: Vector3.hh:40
bool SetFromBox(const Material &_mat, const Vector3< T > &_size, const Quaternion< T > &_rot=Quaternion< T >::Identity)
Set inertial properties based on a Material and equivalent box.
Definition: MassMatrix3.hh:1055
bool SetDensityFromMass(const Precision _mass)
Set the density of this box based on a mass value. Density is computed using double DensityFromMass(c...
Definition: detail/Box.hh:128
Definition: Angle.hh:39
bool MassMatrix(MassMatrix3< Precision > &_massMat) const
Get the mass matrix for this box. This function is only meaningful if the box's size and material hav...
Definition: detail/Box.hh:138
const Material & Material() const
Get the material associated with this box.
Definition: detail/Box.hh:83