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: alien/alien.cpp
- Revision:
- 16:cba54d0696dc
- Parent:
- 15:ebbd903455f0
- Child:
- 17:9da9d0d41fca
diff -r ebbd903455f0 -r cba54d0696dc alien/alien.cpp
--- a/alien/alien.cpp Fri Apr 19 17:45:55 2019 +0000
+++ b/alien/alien.cpp Fri Apr 19 18:26:00 2019 +0000
@@ -55,4 +55,10 @@
_velocity.x = v.x;
_velocity.y = v.y;
}
+
+Vector2D alien::get_velocity()
+{
+ Vector2D v = {_velocity.x,_velocity.y};
+ return v;
}
+