OpenLexocad  28.0
Sphr.h
Go to the documentation of this file.
1 #pragma once
2 #include <Geom/Pnt.h>
3 
4 namespace Geom
5 {
7 class LX_GEOM_EXPORT Sphr
8 {
9 public:
10  Sphr();
11  Sphr(const Geom::Pnt& center, const double& radius);
12  void setValue(const Geom::Pnt& center, const double& radius);
13  void setCenter(const Geom::Pnt& center);
14  void setRadius(const double& radius);
15  const Geom::Pnt& getCenter(void) const;
16  const double& getRadius(void) const;
17 
18  bool pointInside(const Geom::Pnt& p) const;
19 
20 private:
21  Geom::Pnt _center;
22  double _radius;
23 };
24 
25 } // namespace Geom
Geom::Sphr::Sphr
Sphr(const Geom::Pnt &center, const double &radius)
Geom::Sphr::setRadius
void setRadius(const double &radius)
Geom::Sphr::pointInside
bool pointInside(const Geom::Pnt &p) const
Geom::Sphr::Sphr
Sphr()
Geom::Sphr
Defines a non-persistent Sphere in 3D space.
Definition: Sphr.h:8
Geom::Sphr::getRadius
const double & getRadius(void) const
Geom::Pnt
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:44
Pnt.h
Geom::Sphr::setValue
void setValue(const Geom::Pnt &center, const double &radius)
Geom::Sphr::getCenter
const Geom::Pnt & getCenter(void) const
Geom
Definition: PropertyContainer.h:33
Geom::Sphr::setCenter
void setCenter(const Geom::Pnt &center)