Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: Bullet/Bullet.cpp
- Revision:
- 33:de130e274391
- Parent:
- 31:5c4acae51026
--- a/Bullet/Bullet.cpp Thu May 09 11:21:53 2019 +0000
+++ b/Bullet/Bullet.cpp Thu May 09 11:39:59 2019 +0000
@@ -27,21 +27,8 @@
}
}
-float Bullet::get_position_x()
-{
- float p_x = _position_x;
- return p_x;
-}
+float Bullet::get_position_x(){ float p_x = _position_x; return p_x; }
-float Bullet::get_position_y()
-{
- float p_y = _position_y;
- return p_y;
-}
+float Bullet::get_position_y(){ float p_y = _position_y; return p_y; }
-void Bullet::set_position(float pos_x, float pos_y)
-{
- _position_x = pos_x;
- _position_y = pos_y;
-}
-
+void Bullet::set_position(float pos_x, float pos_y) { _position_x = pos_x; _position_y = pos_y; }
\ No newline at end of file