Class Ellipsoid
Defined in File geometric_shapes.h
Inheritance Relationships
Base Type
public coal::ShapeBase
(Class ShapeBase)
Class Documentation
-
class Ellipsoid : public coal::ShapeBase
Ellipsoid centered at point zero.
Public Functions
-
inline Ellipsoid()
Default constructor.
-
inline Ellipsoid(CoalScalar rx, CoalScalar ry, CoalScalar rz)
-
inline virtual Matrix3s computeMomentofInertia() const
compute the inertia matrix, related to the origin
-
inline virtual CoalScalar computeVolume() const
compute the volume
-
inline CoalScalar minInflationValue() const
-
inline std::pair<Ellipsoid, Transform3s> inflated(const CoalScalar value) const
Inflate the ellipsoid by an amount given by
value
. This value can be positive or negative but must always >=minInflationValue()
.- Parameters:
value – [in] of the shape inflation.
- Returns:
a new inflated ellipsoid and the related transform to account for the change of shape frame
-
inline Ellipsoid()