Parasol Planning Library (PPL)
CSpaceBoundingSphere.h
Go to the documentation of this file.
1 #ifndef C_SPACE_BOUNDING_SPHERE_H_
2 #define C_SPACE_BOUNDING_SPHERE_H_
3 
5 
6 
11 
12  public:
13 
16 
17  explicit CSpaceBoundingSphere(const size_t _n,
18  const double _radius = std::numeric_limits<double>::max());
19 
20  explicit CSpaceBoundingSphere(const std::vector<double>& _center,
21  const double _radius = std::numeric_limits<double>::max());
22 
24 
25  virtual ~CSpaceBoundingSphere() noexcept;
26 
27  virtual std::unique_ptr<Boundary> Clone() const override;
28 
32 
33  virtual Boundary::Space Type() const noexcept override;
34 
35  virtual std::string Name() const noexcept override;
36 
40 
41  using Boundary::InBoundary;
42 
43  virtual bool InBoundary(const Cfg& _cfg) const override;
44 
46 };
47 
48 #endif
Definition: AbstractBoundingSphere.h:12
Definition: Boundary.h:30
Space
The types of space that can be modeled with boundaries.
Definition: Boundary.h:38
An n-dimensional bounding sphere in c-space.
Definition: CSpaceBoundingSphere.h:10
virtual Boundary::Space Type() const noexcept override
Get the space type.
Definition: CSpaceBoundingSphere.cpp:34
CSpaceBoundingSphere(const size_t _n, const double _radius=std::numeric_limits< double >::max())
Definition: CSpaceBoundingSphere.cpp:7
virtual std::string Name() const noexcept override
Get the name of the boundary type.
Definition: CSpaceBoundingSphere.cpp:41
virtual ~CSpaceBoundingSphere() noexcept
virtual bool InBoundary(const Vector3d &_p) const
Definition: Boundary.cpp:94
virtual std::unique_ptr< Boundary > Clone() const override
Definition: CSpaceBoundingSphere.cpp:26
Definition: Cfg.h:38
Definition: XMLNode.h:27