16 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
18 Sphere(
double radius,
const Eigen::Vector2d &_center = Eigen::Vector2d(0, 0))
23 Sphere(
double radius,
double x,
double y) :
Shape(Eigen::Vector2d(x, y)) {
27 bool rayTrace(
const Eigen::Vector2d &point1,
const Eigen::Vector2d &point2,
28 std::vector<LineSegment> &intersect)
const override;
45 void print(std::ostringstream &stream)
const;
ShapeType type() const
Get shape type.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Sphere(double radius, const Eigen::Vector2d &_center=Eigen::Vector2d(0, 0))
fcl::CollisionGeometry< FCL_PRECISION > * createFCLCollisionGeometry(void) const override
bool rayTrace(const Eigen::Vector2d &point1, const Eigen::Vector2d &point2, std::vector< LineSegment > &intersect) const override
Sphere(double radius, double x, double y)
void print(std::ostringstream &stream) const
Print all parameters of the shape.
void set_radius(double _radius)
Base prototype for the shape of an obstacle.
virtual CollisionObjectType getCollisionObjectType() const override
fcl::CollisionObject< FCL_PRECISION > * createFCLCollisionObject(const std::shared_ptr< fcl::CollisionGeometry< FCL_PRECISION >> &) const override