gz/math/Cylinder.hh
Cylinder< float > Cylinderf
Cylinder with float precision.
Definition: gz/math/Cylinder.hh:177
Definition: gz/math/AdditivelySeparableScalarField3.hh:27
Contains information about a single material.
Definition: gz/math/Material.hh:65
Cylinder< double > Cylinderd
Cylinder with double precision.
Definition: gz/math/Cylinder.hh:173
const Material & Mat() const
Get the material associated with this cylinder.
Precision DensityFromMass(const Precision _mass) const
Compute the cylinder's density given a mass value. The cylinder is assumed to be solid with uniform d...
Cylinder< int > Cylinderi
Cylinder with integer precision.
Definition: gz/math/Cylinder.hh:169
Cylinder()=default
Default constructor. The default radius and length are both zero. The default rotational offset is Qu...
bool operator==(const Cylinder &_cylinder) const
Check if this cylinder is equal to the provided cylinder. Radius, length, and material properties wil...
Quaternion< Precision > RotationalOffset() const
Get the rotational offset. By default, a cylinder's length is aligned with the Z axis....
void SetMat(const Material &_mat)
Set the material associated with this cylinder.
bool MassMatrix(MassMatrix3d &_massMat) const
Get the mass matrix for this cylinder. This function is only meaningful if the cylinder's radius,...
A class for inertial information about a rigid body consisting of the scalar mass and a 3x3 symmetric...
Definition: gz/math/MassMatrix3.hh:45
bool SetDensityFromMass(const Precision _mass)
Set the density of this cylinder based on a mass value. Density is computed using Precision DensityFr...
void SetRotationalOffset(const Quaternion< Precision > &_rotOffset)
Set the rotation offset. See Quaternion<Precision> RotationalOffset() for details on the rotational o...