Class Ellipsoid

Inheritance Relationships

Base Type

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 explicit Ellipsoid(const Vec3s &radii)
inline Ellipsoid(const Ellipsoid &other)
inline virtual Ellipsoid *clone() const

Clone *this into a new Ellipsoid.

virtual void computeLocalAABB()

Compute AABB.

inline virtual NODE_TYPE getNodeType() const

Get node type: an ellipsoid.

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

Public Members

Vec3s radii

Radii of the Ellipsoid (such that on boundary: x^2/rx^2 + y^2/ry^2.

  • z^2/rz^2 = 1)