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.

common.h

Committer:
taylorza
Date:
2014-10-25
Revision:
3:e32f5c25a352
Parent:
0:303768292f44

File content as of revision 3:e32f5c25a352:

#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__