GlobeEngine
BoundingSphere.h
Go to the documentation of this file.
1 
9 #ifndef GlobeEngine_BoundingSphere_h
10 #define GlobeEngine_BoundingSphere_h
11 
12 #include <vmmlib/vmmlib.hpp>
13 #include <memory>
14 
15 namespace ge {
16 
17  class Camera;
18 
20  {
21  public:
24  void clear();
25  void create(const vmml::Vector3d& _midPoint, double radius);
26 
27  double intersect(const vmml::Vector3d& _point) const;
28  bool isPointInside(vmml::Vector3d _position) const;
29 
30  void set(const vmml::Vector3d& _midPoint, double _radius);
31  void setMidPoint(const vmml::Vector3d& _midPoint);
32  void setRadius(double _radius);
33  const vmml::Vector3d getMidPoint() const;
34  double getRadius() const;
35  void draw(std::shared_ptr<ge::Camera> _cam);
36 
37  private:
38  vmml::Vector3d midPoint;
39  double radius;
40 
41  };
42 }
43 #endif
~BoundingSphere()
Definition: BoundingSphere.h:23
void create(const vmml::Vector3d &_midPoint, double radius)
Definition: BoundingSphere.cpp:17
void draw(std::shared_ptr< ge::Camera > _cam)
Definition: BoundingSphere.cpp:46
BoundingSphere()
Definition: BoundingSphere.h:22
double getRadius() const
Definition: BoundingSphere.cpp:72
void clear()
Definition: BoundingSphere.cpp:11
bool isPointInside(vmml::Vector3d _position) const
Definition: BoundingSphere.cpp:37
void set(const vmml::Vector3d &_midPoint, double _radius)
Definition: BoundingSphere.cpp:51
Definition: AvalancheTrainingSimulationEngine.h:28
const vmml::Vector3d getMidPoint() const
Definition: BoundingSphere.cpp:67
void setMidPoint(const vmml::Vector3d &_midPoint)
Definition: BoundingSphere.cpp:57
void setRadius(double _radius)
Definition: BoundingSphere.cpp:62
double intersect(const vmml::Vector3d &_point) const
Definition: BoundingSphere.cpp:23
Definition: BoundingSphere.h:19