Rihards Balass / 4DGL-mbed-32PTU
Revision:
4:50511ed54ab4
Parent:
3:dcfbceb81fef
Child:
5:890ddd974624
--- a/demo.cpp	Fri Sep 09 10:19:54 2016 +0000
+++ b/demo.cpp	Fri Sep 09 12:45:28 2016 +0000
@@ -26,7 +26,7 @@
     changeColor(Purple, Yellow);
     wait_ms(LONG_WAIT);
     cls();
-*/
+
     puts("Lets draw some shapes:");
     wait_ms(SHORT_WAIT);
     drawCircle(100, 100, 20, Aqua);
@@ -55,6 +55,12 @@
     wait_ms(SHORT_WAIT);
     drawFilledTriangle(260, 50, 300, 90, 240, 120, Yellow);
     wait_ms(SHORT_WAIT);
+    cls();
+*/
+    puts("Lets calculate distance from point 0,0 on angle 40, 60 pixels away:");
+    wait_ms(LONG_WAIT);
+    cls();
+    calculateOrbit(40, 60);
 } 
 
 //**************************************************************************