17 #ifndef IGNITION_MATH_CYLINDER_HH_ 18 #define IGNITION_MATH_CYLINDER_HH_ 29 class CylinderPrivate;
32 inline namespace IGNITION_MATH_VERSION_NAMESPACE {
42 template<
typename Precision>
55 public:
Cylinder(
const Precision _length,
const Precision _radius,
65 public:
Cylinder(
const Precision _length,
const Precision _radius,
75 public: Precision Radius()
const;
79 public:
void SetRadius(
const Precision _radius);
83 public: Precision Length()
const;
87 public:
void SetLength(
const Precision _length);
100 public:
void SetRotationalOffset(
105 public:
const Material &Mat()
const;
109 public:
void SetMat(
const Material &_mat);
123 public:
bool operator==(
const Cylinder &_cylinder)
const;
127 public: Precision Volume()
const;
137 public: Precision DensityFromMass(
const Precision _mass)
const;
151 public:
bool SetDensityFromMass(
const Precision _mass);
154 private: Precision radius = 0.0;
157 private: Precision length = 0.0;
181 #include "ignition/math/detail/Cylinder.hh" Cylinder< float > Cylinderf
Cylinder with float precision.
Definition: Cylinder.hh:177
Cylinder< double > Cylinderd
Cylinder with double precision.
Definition: Cylinder.hh:173
A class for inertial information about a rigid body consisting of the scalar mass and a 3x3 symmetric...
Definition: MassMatrix3.hh:45
Contains information about a single material.
Definition: Material.hh:65
A representation of a cylinder.
Definition: Cylinder.hh:43
Cylinder< int > Cylinderi
Cylinder with integer precision.
Definition: Cylinder.hh:169