detail/Sphere.hh
Go to the documentation of this file.
bool operator==(const Sphere &_sphere) const
Check if this sphere is equal to the provided sphere. Radius and material properties will be checked...
Definition: detail/Sphere.hh:71
A class for inertial information about a rigid body consisting of the scalar mass and a 3x3 symmetric...
Definition: MassMatrix3.hh:45
void SetRadius(const Precision _radius)
Set the radius in meters.
Definition: detail/Sphere.hh:50
bool MassMatrix(MassMatrix3d &_massMat) const
Get the mass matrix for this sphere. This function is only meaningful if the sphere's radius and mate...
Definition: detail/Sphere.hh:86
void SetMaterial(const Material &_mat)
Set the material associated with this sphere.
Definition: detail/Sphere.hh:64
bool equal(const T &_a, const T &_b, const T &_epsilon=T(1e-6))
check if two values are equal, within a tolerance
Definition: Helpers.hh:552
bool SetFromSphere(const Material &_mat, const T _radius)
Set inertial properties based on a material and equivalent sphere.
Definition: MassMatrix3.hh:1192
Precision Volume() const
Get the volume of the sphere in m^3.
Definition: detail/Sphere.hh:93
Precision Radius() const
Get the radius in meters.
Definition: detail/Sphere.hh:43
Precision DensityFromMass(const Precision _mass) const
Compute the sphere's density given a mass value. The sphere is assumed to be solid with uniform densi...
Definition: detail/Sphere.hh:110
T pow(T... args)
bool operator!=(const Sphere &_sphere) const
Check if this sphere is not equal to the provided sphere. Radius and material properties will be chec...
Definition: detail/Sphere.hh:79
bool SetDensityFromMass(const Precision _mass)
Set the density of this sphere based on a mass value. Density is computed using Precision DensityFrom...
Definition: detail/Sphere.hh:100
Definition: Angle.hh:39
const Material & Material() const
Get the material associated with this sphere.
Definition: detail/Sphere.hh:57
#define IGN_PI
Define IGN_PI, IGN_PI_2, and IGN_PI_4. This was put here for Windows support.
Definition: Helpers.hh:180