From d7364eb89f81fa770bc3658a93917412baa020df Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Thu, 24 Aug 2017 00:24:58 +0100 Subject: Updating docs --- particlebody_8hpp_source.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'particlebody_8hpp_source.html') diff --git a/particlebody_8hpp_source.html b/particlebody_8hpp_source.html index 0f8ddfb4..2f747985 100644 --- a/particlebody_8hpp_source.html +++ b/particlebody_8hpp_source.html @@ -85,15 +85,15 @@ $(document).ready(function(){initNavTree('particlebody_8hpp_source.html','');});
particlebody.hpp
-Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * particlebody.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_PARTICLE_BODY_HPP
10 #define YAGE_PARTICLE_BODY_HPP
11 
12 #include "Math/matrix.hpp"
13 
14 #include "body.hpp"
15 
16 namespace yage {
17 
18 class ParticleBody : public Body {
19 public:
20  ParticleBody(const Vector2d& position = Vector2d(0, 0), double mass = 1,
21  const Vector2d& velocity = Vector2d(0, 0),
22  bool gravity = true);
23 
24  // apply a force to the rigid body
25  void applyForce(const Vector2d& force) override override;
26  void update() override override;
27 };
28 
29 } // yage
30 
31 #endif
-
void update() override override
Definition: particlebody.cpp:22
+Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * particlebody.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_PARTICLE_BODY_HPP
10 #define YAGE_PHYSICS_PARTICLE_BODY_HPP
11 
12 #include "Math/matrix.hpp"
13 #include "Physics/body.hpp"
14 
15 namespace yage
16 {
17 
18 class ParticleBody : public Body
19 {
20 public:
21  ParticleBody(const Vector2d &position = Vector2d(0, 0), double mass = 1,
22  const Vector2d &velocity = Vector2d(0, 0),
23  bool gravity = true);
24 
25  // apply a force to the rigid body
26  void applyForce(const Vector2d &force) override;
27  void update() override;
28 };
29 
30 } // yage
31 
32 #endif
-
ParticleBody(const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=true)
Definition: particlebody.cpp:16
+
ParticleBody(const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=true)
Definition: particlebody.cpp:17
Definition: particlebody.hpp:18
-
Definition: body.hpp:15
-
Vector2< double > Vector2d
Definition of a 2D vector.
Definition: matrix.hpp:316
-
void applyForce(const Vector2d &force) override override
Definition: particlebody.cpp:20
+
Definition: body.hpp:16
+
void applyForce(const Vector2d &force) override
Definition: particlebody.cpp:23
+
Vector2< double > Vector2d
Definition of a 2D vector.
Definition: matrix.hpp:350
+
void update() override
Definition: particlebody.cpp:25
Templated matrix class.
Definition: camera2d.hpp:17
@@ -101,7 +101,7 @@ $(document).ready(function(){initNavTree('particlebody_8hpp_source.html','');});