Alexandra Posta / Mbed OS ELEC2645_Race_Collision

Dependencies:   ELEC2645_JoystickLCD_LPC1768_2021

Revision:
8:1fc5e14b0db6
Parent:
1:2ae7a8b01771
Child:
9:6f060f495536
--- a/lib/Ball.cpp	Thu Apr 22 16:33:42 2021 +0000
+++ b/lib/Ball.cpp	Sat Apr 24 21:31:19 2021 +0000
@@ -0,0 +1,18 @@
+#include "Ball.h"
+
+// constructure
+Ball::Ball() {}
+
+void Ball::init() {    
+    //initialize parameters
+    //say that trajectory is 0
+}
+
+//std::vector<Vector2Df> Ball::get_path() {
+//    path points = utils.getCurve;
+//    return path_points; 
+//    }
+
+void Ball::draw(N5110 &lcd, std::vector<Vector2Df> path_points, int radius, float iterator) { 
+    lcd.drawCircle(static_cast<int>(path_points[iterator].x), static_cast<int>(path_points[iterator].y), radius, FILL_TRANSPARENT);
+}
\ No newline at end of file