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: ELEC2645_JoystickLCD_LPC1768_2021
Diff: lib/Ball.cpp
- 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