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);
101 public:
void SetRotationalOffset(
106 public:
void SetLength(
const Precision _length)
const;
110 public:
const Material &Mat()
const;
114 public:
void SetMat(
const Material &_mat);
128 public:
bool operator==(
const Cylinder &_cylinder)
const;
132 public: Precision Volume()
const;
142 public: Precision DensityFromMass(
const Precision _mass)
const;
156 public:
bool SetDensityFromMass(
const Precision _mass);
159 private: Precision radius = 0.0;
162 private: Precision length = 0.0;
186 #include "ignition/math/detail/Cylinder.hh" Cylinder< float > Cylinderf
Cylinder with float precision.
Definition: Cylinder.hh:182
Cylinder< double > Cylinderd
Cylinder with double precision.
Definition: Cylinder.hh:178
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 represntation of a cylinder.
Definition: Cylinder.hh:43
Cylinder< int > Cylinderi
Cylinder with integer precision.
Definition: Cylinder.hh:174