YAGE
0.02
Yet Another Game Engine
include
YAGE
Physics
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
yage
Definition:
camera2d.hpp:17
Generated on Sun Aug 13 2017 17:42:24 for YAGE by
1.8.13