From c82d7e77dcbc9c41b4d2853790aa4a6616db43ac Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Fri, 28 Jul 2017 00:10:45 +0100 Subject: Updating docs --- README.md | 1 - body_8hpp_source.html | 3 +- dir_5ac3a90c14a160db9539610948ce4998.html | 7 ++ files.html | 2 +- math_8hpp_source.html | 3 +- matrix_8hpp.html | 175 ++++++++++++++++++++++++++++++ matrix_8hpp_source.html | 8 +- md_docs_README.html | 75 +++++++++++++ pages.html | 3 +- particlebody_8hpp_source.html | 3 +- search/all_2.js | 3 +- search/all_3.js | 5 +- search/all_4.js | 6 +- search/all_5.js | 6 +- search/all_6.js | 7 +- search/all_7.js | 7 +- search/all_8.js | 6 +- search/all_9.js | 5 +- search/all_a.js | 7 +- search/all_b.js | 7 +- search/all_c.js | 2 +- search/all_d.html | 26 +++++ search/all_d.js | 4 + search/files_0.html | 26 +++++ search/files_0.js | 4 + search/pages_0.js | 2 +- search/pages_1.html | 26 +++++ search/pages_1.js | 4 + search/searchdata.js | 11 +- 29 files changed, 399 insertions(+), 45 deletions(-) delete mode 100644 README.md create mode 100644 matrix_8hpp.html create mode 100644 md_docs_README.html create mode 100644 search/all_d.html create mode 100644 search/all_d.js create mode 100644 search/files_0.html create mode 100644 search/files_0.js create mode 100644 search/pages_1.html create mode 100644 search/pages_1.js diff --git a/README.md b/README.md deleted file mode 100644 index 6228a7f5..00000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -My gh-pages branch diff --git a/body_8hpp_source.html b/body_8hpp_source.html index 623d10ec..a2c250a8 100644 --- a/body_8hpp_source.html +++ b/body_8hpp_source.html @@ -67,7 +67,8 @@ $(function() {
body.hpp
-
1 /* ----------------------------------------------------------------------------
2  * body.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_BODY_HPP
10 #define YAGE_BODY_HPP
11 
12 #include "Math/matrix.hpp"
13 
14 namespace yage
15 {
16 
17 class Body
18 {
19 public:
20  // gravity constant
21  static const double GRAVITY;
22 protected:
23  // center of mass of the object
24  Vector2d position_=Vector2d(0, 0);
25 
26  // mass of the object
27  double mass_=1;
28 
29  // current velocity of the object
30  Vector2d velocity_=Vector2d(0, 0);
31 
32  // boolean that defines if gravity can act on the object
33  bool gravity_=true;
34 
35  // current acceleration
36  Vector2d acceleration_=Vector2d(0, 0);
37 
38  // force acting on the body
39  Vector2d force_=Vector2d(0, 0);
40 
41 public:
42  virtual ~Body();
43 
44  // apply force to the object and update the velocity
45  virtual void applyForce(const Vector2d &force)=0;
46  virtual void update()=0;
47 
48  double xPosition() const;
49  double yPosition() const;
50 protected:
51  // protected constructor to initialize member variables
52  Body(const Vector2d &position=Vector2d(0, 0),
53  double mass=1,
54  const Vector2d &velocity=Vector2d(0, 0),
55  bool gravity=false);
56 };
57 
58 } // yage
59 
60 #endif
+
1 /* ----------------------------------------------------------------------------
2  * body.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_BODY_HPP
10 #define YAGE_BODY_HPP
11 
12 #include "Math/matrix.hpp"
13 
14 namespace yage
15 {
16 
17 class Body
18 {
19 public:
20  // gravity constant
21  static const double GRAVITY;
22 protected:
23  // center of mass of the object
24  Vector2d position_=Vector2d(0, 0);
25 
26  // mass of the object
27  double mass_=1;
28 
29  // current velocity of the object
30  Vector2d velocity_=Vector2d(0, 0);
31 
32  // boolean that defines if gravity can act on the object
33  bool gravity_=true;
34 
35  // current acceleration
36  Vector2d acceleration_=Vector2d(0, 0);
37 
38  // force acting on the body
39  Vector2d force_=Vector2d(0, 0);
40 
41 public:
42  virtual ~Body();
43 
44  // apply force to the object and update the velocity
45  virtual void applyForce(const Vector2d &force)=0;
46  virtual void update()=0;
47 
48  double xPosition() const;
49  double yPosition() const;
50 protected:
51  // protected constructor to initialize member variables
52  Body(const Vector2d &position=Vector2d(0, 0),
53  double mass=1,
54  const Vector2d &velocity=Vector2d(0, 0),
55  bool gravity=false);
56 };
57 
58 } // yage
59 
60 #endif
Templated matrix class.
+
Definition: body.hpp:17
Definition: camera2d.hpp:17
diff --git a/dir_5ac3a90c14a160db9539610948ce4998.html b/dir_5ac3a90c14a160db9539610948ce4998.html index f14855f3..9e4e2ab8 100644 --- a/dir_5ac3a90c14a160db9539610948ce4998.html +++ b/dir_5ac3a90c14a160db9539610948ce4998.html @@ -67,6 +67,13 @@ $(function() {
Math Directory Reference
+ + + + + +

+Files

file  matrix.hpp [code]
 Templated matrix class.