YAGE  0.02
Yet Another Game Engine
rectanglecollider.hpp
1 /* ----------------------------------------------------------------------------
2  * rectanglecollider.hpp
3  *
4  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License
5  * See file LICENSE for more details
6  * ----------------------------------------------------------------------------
7  */
8 
9 #ifndef YAGE_RECTANGLE_COLLIDER_HPP
10 #define YAGE_RECTANGLE_COLLIDER_HPP
11 
12 #include "Physics/collider.hpp"
13 
14 #include <glm/glm.hpp>
15 
16 namespace yage {
17 
18 class RectangleCollider : public Collider {
19 public:
20  RectangleCollider(const glm::vec2& position, const glm::vec2& size);
21 
22  virtual bool collides(const Collider& collider) const;
23  virtual bool inside(const glm::vec2& point) const;
24 };
25 
26 } // yage
27 
28 #endif
Definition: camera2d.hpp:17