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& _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:111
void setNormalAndOffset(const Eigen::Vector3d &_normal, double _offset)
Set plane normal and offset.
Definition: PlaneShape.cpp:103
void setNormal(const Eigen::Vector3d &_normal)
Set plane normal.
Definition: PlaneShape.cpp:75
const std::string & getType() const override
Returns a string representing the shape type.
Definition: PlaneShape.cpp:56
void updateBoundingBox() const override
Updates bounding box.
Definition: PlaneShape.cpp:131
double computeSignedDistance(const Eigen::Vector3d &_point) const
Compute signed distance between the plane and the given point.
Definition: PlaneShape.cpp:125
void updateVolume() const override
Updates volume.
Definition: PlaneShape.cpp:142
double mOffset
Plane offset.
Definition: PlaneShape.hpp:96
static const std::string & getStaticType()
Returns shape type for this class.
Definition: PlaneShape.cpp:62
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:69
const Eigen::Vector3d & getNormal() const
Get plane normal.
Definition: PlaneShape.cpp:83
double computeDistance(const Eigen::Vector3d &_point) const
Compute distance between the plane and the given point.
Definition: PlaneShape.cpp:119
double getOffset() const
Get plane offset.
Definition: PlaneShape.cpp:97
void setOffset(double _offset)
Set plane offset.
Definition: PlaneShape.cpp:89
Definition: BulletCollisionDetector.cpp:63