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