Ray casting engine implemented on the mBuino platform using the ST7735 LCD controller.

Dependencies:   LCD_ST7735 mbed

Ray casting engine written to test performance of the LCD_ST7735 library I wrote as a learning exercise on the mbed platform.

Revision:
0:303768292f44
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common.h	Sun Sep 21 22:04:22 2014 +0000
@@ -0,0 +1,17 @@
+#ifndef __COMMON_H__
+#define __COMMON_H__
+
+#ifndef PI
+#define PI                  3.14159265358979323846f
+#endif
+
+#define PI2                 6.28318530717958647692f
+
+#define CELL_SIZE           32
+#define CELL_SIZE_SHIFT     5
+#define CELL_SIZE_MASK      0x1f
+#define CELL_BIT_MASK       0xffe0
+
+#define FLOAT2INT(x)        ((int)((x) + 0.5))
+
+#endif //__COMMON_H__