gz/math/Capsule.hh
Capsule< int > Capsulei
Capsule with integer precision.
Definition: gz/math/Capsule.hh:137
Definition: gz/math/AdditivelySeparableScalarField3.hh:27
Capsule< double > Capsuled
Capsule with double precision.
Definition: gz/math/Capsule.hh:141
Contains information about a single material.
Definition: gz/math/Material.hh:65
Capsule()=default
Default constructor. The default radius and length are both zero.
Precision DensityFromMass(const Precision _mass) const
Compute the capsule's density given a mass value. The capsule is assumed to be solid with uniform den...
const Material & Mat() const
Get the material associated with this capsule.
bool operator==(const Capsule &_capsule) const
Check if this capsule is equal to the provided capsule. Radius, length, and material properties will ...
bool SetDensityFromMass(const Precision _mass)
Set the density of this capsule based on a mass value. Density is computed using Precision DensityFro...
void SetMat(const Material &_mat)
Set the material associated with this capsule.
std::optional< MassMatrix3< Precision > > MassMatrix() const
Get the mass matrix for this capsule. This function is only meaningful if the capsule's radius,...
A representation of a capsule or sphere-capped cylinder.
Definition: gz/math/Capsule.hh:43
Capsule< float > Capsulef
Capsule with float precision.
Definition: gz/math/Capsule.hh:145