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: Rasturizer/Rasturizer.cpp
- Revision:
- 10:07a23afd5088
- Parent:
- 9:5915fc800824
- Child:
- 11:2cd6341136ca
diff -r 5915fc800824 -r 07a23afd5088 Rasturizer/Rasturizer.cpp
--- a/Rasturizer/Rasturizer.cpp Tue Mar 19 10:27:37 2019 +0000
+++ b/Rasturizer/Rasturizer.cpp Tue Mar 19 12:12:52 2019 +0000
@@ -17,12 +17,12 @@
}
if (points[0][2] > 20 || points[1][2] > 20 || points[2][2] > 20|| points[3][2] > 20){
+
int diffX1 = points[0][0]-points[1][0];
int diffY1 = points[0][1]-points[1][1];
int diffX2 = points[2][0]-points[3][0];
int diffY2 = points[2][1]-points[3][1];
- lcd.printString("bottom",0,0);
double step = (double)diffY2/(double)diffX2;
double stepSmall1 = (double)diffX1/(double)diffX2;
double stepSmall2 = (double)diffY1/(double)diffX2;