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:
- 17:74de8c17ddac
- Parent:
- 16:e0542761fc8c
- Child:
- 18:9f40a2f8c2c5
--- a/Bullet/Bullet.cpp Wed Apr 24 10:33:39 2019 +0000
+++ b/Bullet/Bullet.cpp Wed Apr 24 10:37:47 2019 +0000
@@ -36,21 +36,6 @@
return p_y;
}
-float Bullet::get_velocity_x(){
- float v_x = _velocity_x;
- return v_x;
-}
-
-double Bullet::get_velocity_y(){
- double v_y = (double)_velocity_y;
- return (double)v_y;
-}
-
-void Bullet::set_velocity(float vel_x, double vel_y){
- _velocity_x = vel_x;
- _velocity_y = (double)vel_y;
-}
-
void Bullet::set_position(float pos_x, float pos_y){
_position_x = pos_x;
_position_y = pos_y;