Ellipsoid.hh
Go to the documentation of this file.
bool operator==(const Ellipsoid &_ellipsoid) const
Check if this ellipsoid is equal to the provided ellipsoid. Radius, length, and material properties w...
const Material & Mat() const
Get the material associated with this ellipsoid.
void SetRadii(const Vector3< Precision > &_radii)
Set the radius in meters.
bool SetDensityFromMass(const Precision _mass)
Set the density of this ellipsoid based on a mass value. Density is computed using Precision DensityF...
Precision DensityFromMass(const Precision _mass) const
Compute the ellipsoid's density given a mass value. The ellipsoid is assumed to be solid with uniform...
Ellipsoid(const Vector3< Precision > &_radii)
Construct a ellipsoid with a Vector3 of three radii.
Ellipsoid()=default
Default constructor. The default radius and length are both zero.
Ellipsoid(const Vector3< Precision > &_radii, const Material &_mat)
Construct a ellipsoid with three radii and a material.
void SetMat(const Material &_mat)
Set the material associated with this ellipsoid.
std::optional< MassMatrix3< Precision > > MassMatrix() const
Get the mass matrix for this ellipsoid. This function is only meaningful if the ellipsoid's radii and...
Ellipsoid< float > Ellipsoidf
Ellipsoid with float precision.
Definition: Ellipsoid.hh:128
Ellipsoid< double > Ellipsoidd
Ellipsoid with double precision.
Definition: Ellipsoid.hh:124
Ellipsoid< int > Ellipsoidi
Ellipsoid with integer precision.
Definition: Ellipsoid.hh:120
Definition: Angle.hh:43