From 3d96965ecd28b9037a83c4b22f65fcf502dce336 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sat, 29 Jul 2017 10:00:20 +0100 Subject: Updating docs --- particlebody_8hpp_source.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'particlebody_8hpp_source.html') diff --git a/particlebody_8hpp_source.html b/particlebody_8hpp_source.html index 1b4af3dd..88696aae 100644 --- a/particlebody_8hpp_source.html +++ b/particlebody_8hpp_source.html @@ -22,6 +22,7 @@
YAGE +  0.02
Yet Another Game Engine
@@ -67,15 +68,13 @@ $(function() {
particlebody.hpp
-
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 
19 class ParticleBody : public Body
20 {
21 public:
22  ParticleBody(const Vector2d &position=Vector2d(0, 0),
23  double mass=1,
24  const Vector2d &velocity=Vector2d(0, 0),
25  bool gravity=true);
26 
27  // apply a force to the rigid body
28  virtual void applyForce(const Vector2d &force);
29  virtual void update();
30 };
31 
32 } // yage
33 
34 #endif
Templated matrix class.
- -
Definition: particlebody.hpp:19
-
Definition: body.hpp:17
+
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 
19 class ParticleBody : public Body
20 {
21 public:
22  ParticleBody(const Vector2d &position=Vector2d(0, 0),
23  double mass=1,
24  const Vector2d &velocity=Vector2d(0, 0),
25  bool gravity=true);
26 
27  // apply a force to the rigid body
28  virtual void applyForce(const Vector2d &force);
29  virtual void update();
30 };
31 
32 } // yage
33 
34 #endif
Templated matrix class.
+
Vector2< double > Vector2d
Definition of a 2D vector.
Definition: matrix.hpp:388
Definition: camera2d.hpp:17
-- cgit