Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
point.h
1 #pragma once
2 
3 #include <glm/glm.hpp>
4 
5 #include "abstractshape.h"
6 
7 
8 class Sphere;
9 class Transform;
10 template<typename T> class TAABB;
11 
12 class Point: public AbstractShape {
13 public:
14  Point();
15  Point(const glm::vec3& pos);
16 
17  const glm::vec3& position() const;
18  void setPosition(const glm::vec3& pos);
19 
20  virtual bool intersects(const Sphere& sphere) const override;
21  virtual bool nearTo(const TAABB<int>& aabb) const override;
22  virtual bool containedBy(const TAABB<int>& aabb) const override;
23 
24 protected:
25  glm::vec3 m_position;
26 };
27 
Definition: transform.h:9
Definition: aabb.h:15
Definition: sphere.h:11
Definition: point.h:12
Definition: abstractshape.h:7