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:
- 17:9da9d0d41fca
- Parent:
- 16:cba54d0696dc
- Child:
- 18:1c1a3fb0efae
diff -r cba54d0696dc -r 9da9d0d41fca alien/alien.cpp
--- a/alien/alien.cpp Fri Apr 19 18:26:00 2019 +0000
+++ b/alien/alien.cpp Fri Apr 19 18:32:06 2019 +0000
@@ -62,3 +62,8 @@
return v;
}
+Vector2D alien::get_pos()
+{
+ Vector2D p = {_x,_y};
+ return p;
+}