gz/math/Box.hh
void SetMaterial(const Material &_mat)
Set the material associated with this box.
std::optional< Vector3< Precision > > CenterOfVolumeBelow(const Plane< Precision > &_plane) const
Center of volume below the plane. This is useful when calculating where buoyancy should be applied,...
Definition: gz/math/AdditivelySeparableScalarField3.hh:27
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...
void SetSize(const math::Vector3< Precision > &_size)
Set the size of the box.
const Material & Material() const
Get the material associated with this box.
bool operator==(const Box< Precision > &_b) const
Equality test operator.
Contains information about a single material.
Definition: gz/math/Material.hh:65
IntersectionPoints< Precision > VerticesBelow(const Plane< Precision > &_plane) const
All the vertices which are on or below the plane.
IntersectionPoints< Precision > Intersections(const Plane< Precision > &_plane) const
Get intersection between a plane and the box's edges. Edges contained on the plane are ignored.
bool operator!=(const Box< Precision > &_b) const
Inequality test operator.
Precision VolumeBelow(const Plane< Precision > &_plane) const
Get the volume of the box below a plane.
bool SetDensityFromMass(const Precision _mass)
Set the density of this box based on a mass value. Density is computed using double DensityFromMass(c...
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....
STL class.
A class for inertial information about a rigid body consisting of the scalar mass and a 3x3 symmetric...
Definition: gz/math/MassMatrix3.hh:45