33 #ifndef DART_DYNAMICS_ELLIPSOIDSHAPE_HPP_
34 #define DART_DYNAMICS_ELLIPSOIDSHAPE_HPP_
53 const std::string&
getType()
const override;
61 void setSize(
const Eigen::Vector3d& diameters);
66 const Eigen::Vector3d&
getSize()
const;
75 void setRadii(
const Eigen::Vector3d& radii);
78 const Eigen::Vector3d
getRadii()
const;
81 static double computeVolume(
const Eigen::Vector3d& diameters);
87 const Eigen::Vector3d& diameters,
double mass);
#define DART_DEPRECATED(version)
Definition: Deprecated.hpp:51
Definition: EllipsoidShape.hpp:42
Eigen::Vector3d mDiameters
Diameters of this ellipsoid.
Definition: EllipsoidShape.hpp:106
static double computeVolume(const Eigen::Vector3d &diameters)
Compute volume from given properties.
Definition: EllipsoidShape.cpp:117
bool isSphere(void) const
True if all the radii are exactly eqaul.
Definition: EllipsoidShape.cpp:149
void updateBoundingBox() const override
Updates bounding box.
Definition: EllipsoidShape.cpp:158
static Eigen::Matrix3d computeInertia(const Eigen::Vector3d &diameters, double mass)
Compute moments of inertia of a ellipsoid.
Definition: EllipsoidShape.cpp:125
const Eigen::Vector3d getRadii() const
Get radii of this ellipsoid.
Definition: EllipsoidShape.cpp:111
const std::string & getType() const override
Returns a string representing the shape type.
Definition: EllipsoidShape.cpp:54
void setSize(const Eigen::Vector3d &diameters)
Set diameters of this ellipsoid.
Definition: EllipsoidShape.cpp:67
void updateVolume() const override
Updates volume.
Definition: EllipsoidShape.cpp:166
virtual ~EllipsoidShape()
Destructor.
Definition: EllipsoidShape.cpp:48
const Eigen::Vector3d & getSize() const
Get diameters of this ellipsoid.
Definition: EllipsoidShape.cpp:73
EllipsoidShape(const Eigen::Vector3d &diameters)
Constructor.
Definition: EllipsoidShape.cpp:41
void setRadii(const Eigen::Vector3d &radii)
Set radii of this ellipsoid.
Definition: EllipsoidShape.cpp:100
static const std::string & getStaticType()
Returns shape type for this class.
Definition: EllipsoidShape.cpp:60
const Eigen::Vector3d & getDiameters() const
Get diameters of this ellipsoid.
Definition: EllipsoidShape.cpp:94
void setDiameters(const Eigen::Vector3d &diameters)
Set diameters of this ellipsoid.
Definition: EllipsoidShape.cpp:79
Definition: BulletCollisionDetector.cpp:65