From 926a268b9a8d80f5d22b51a741d2ffbd8e898496 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sat, 2 Sep 2017 12:35:17 +0100 Subject: Updating docs --- collider_8hpp_source.html | 107 ---------------------------------------------- 1 file changed, 107 deletions(-) delete mode 100644 collider_8hpp_source.html (limited to 'collider_8hpp_source.html') diff --git a/collider_8hpp_source.html b/collider_8hpp_source.html deleted file mode 100644 index ebc2f051..00000000 --- a/collider_8hpp_source.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - - -YAGE: include/YAGE/Physics/collider.hpp Source File - - - - - - - - - - - - - - -
-
- - - - - - -
-
YAGE -  v0.1.1 -
-
Yet Another Game Engine
-
-
- - - - - - - -
-
- -
-
-
- -
- -
-
- - -
- -
- -
-
-
collider.hpp
-
-
-Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * collider.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_PHYSICS_COLLIDER_HPP
10 #define YAGE_PHYSICS_COLLIDER_HPP
11 
12 #include <glm/glm.hpp>
13 
14 namespace yage
15 {
16 
17 // The Collider class helps collision detection by providing a general shape
18 // for different shapes to have their own collision algorithms.
19 class Collider
20 {
21 protected:
22  // position of the object
23  glm::vec2 position_;
24 
25  // size of the object
26  glm::vec2 size_;
27 
28 public:
29  Collider(const glm::vec2 &position, const glm::vec2 &size)
30  : position_(position), size_(size)
31  {
32  }
33 
34  // function that checks if two colliders are colliding
35  virtual bool collides(const Collider &collider) const = 0;
36 
37  // function that returns if a point is inside the shape
38  virtual bool inside(const glm::vec2 &point) const = 0;
39 };
40 
41 } // namespace yage
42 
43 #endif
Collider(const glm::vec2 &position, const glm::vec2 &size)
Definition: collider.hpp:29
-
glm::vec2 position_
Definition: collider.hpp:23
-
virtual bool collides(const Collider &collider) const =0
-
virtual bool inside(const glm::vec2 &point) const =0
-
glm::vec2 size_
Definition: collider.hpp:26
-
Definition: collider.hpp:19
-
Project namespace.
Definition: body.cpp:13
-
-
- - - - -- cgit