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:
- 15:8fbbdefbe720
- Parent:
- 14:885915260e25
- Child:
- 16:64cd7bc094f9
diff -r 885915260e25 -r 8fbbdefbe720 Rasturizer/Rasturizer.cpp
--- a/Rasturizer/Rasturizer.cpp Sun Mar 31 13:55:51 2019 +0000
+++ b/Rasturizer/Rasturizer.cpp Sun Mar 31 14:56:55 2019 +0000
@@ -4,8 +4,7 @@
N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
Rasturizer::Rasturizer(){
- lcd.init();
- fov = 50;
+
/*double tempPoints[4][3] = {{43, 2.5, 30}, {43, 2.5, 200}, {43, -2.5, 200}, {43, -2.5, 30}};
for(int vertex = 0; vertex < 8; vertex++){
for(int axis = 0; axis < 3; axis++){
@@ -16,6 +15,11 @@
edge.setVisible(true);*/
}
+void Rasturizer::init(){
+ lcd.init();
+ fov = 50;
+}
+
double Rasturizer::xTo2D(double x, double z){
return x * (fov/z) + 42;
}