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
19
class
RectangleCollider :
public
Collider
20
{
21
public
:
22
RectangleCollider(
const
glm::vec2 &position,
const
glm::vec2 &size);
23
24
virtual
bool
collides(
const
Collider &collider)
const
;
25
virtual
bool
inside(
const
glm::vec2 &point)
const
;
26
};
27
28
}
// yage
29
30
#endif
yage
Definition:
camera2d.hpp:17
Generated on Sat Jul 29 2017 10:00:18 for YAGE by
1.8.13