33 #ifndef DART_DYNAMICS_PLANESHAPE_HPP_
34 #define DART_DYNAMICS_PLANESHAPE_HPP_
46 PlaneShape(
const Eigen::Vector3d& _normal,
double _offset);
49 PlaneShape(
const Eigen::Vector3d& _normal,
const Eigen::Vector3d& _point);
52 const std::string&
getType()
const override;
61 void setNormal(
const Eigen::Vector3d& _normal);
77 const Eigen::Vector3d& _normal,
const Eigen::Vector3d& _point);
PlaneShape represents infinite plane has normal and offset as properties.
Definition: PlaneShape.hpp:43
void setNormalAndPoint(const Eigen::Vector3d &_normal, const Eigen::Vector3d &_point)
Set plane normal and point.
Definition: PlaneShape.cpp:107
void setNormalAndOffset(const Eigen::Vector3d &_normal, double _offset)
Set plane normal and offset.
Definition: PlaneShape.cpp:99
void setNormal(const Eigen::Vector3d &_normal)
Set plane normal.
Definition: PlaneShape.cpp:71
const std::string & getType() const override
Returns a string representing the shape type.
Definition: PlaneShape.cpp:52
void updateBoundingBox() const override
Updates bounding box.
Definition: PlaneShape.cpp:127
double computeSignedDistance(const Eigen::Vector3d &_point) const
Compute signed distance between the plane and the given point.
Definition: PlaneShape.cpp:121
void updateVolume() const override
Updates volume.
Definition: PlaneShape.cpp:138
double mOffset
Plane offset.
Definition: PlaneShape.hpp:96
static const std::string & getStaticType()
Returns shape type for this class.
Definition: PlaneShape.cpp:58
PlaneShape(const Eigen::Vector3d &_normal, double _offset)
Constructor.
Definition: PlaneShape.cpp:39
Eigen::Vector3d mNormal
Plane normal.
Definition: PlaneShape.hpp:93
Eigen::Matrix3d computeInertia(double mass) const override
Computes the inertia.
Definition: PlaneShape.cpp:65
const Eigen::Vector3d & getNormal() const
Get plane normal.
Definition: PlaneShape.cpp:79
double computeDistance(const Eigen::Vector3d &_point) const
Compute distance between the plane and the given point.
Definition: PlaneShape.cpp:115
double getOffset() const
Get plane offset.
Definition: PlaneShape.cpp:93
void setOffset(double _offset)
Set plane offset.
Definition: PlaneShape.cpp:85
Definition: BulletCollisionDetector.cpp:65