Ngo Kien / Graphics

Dependents:   SignalProcessLab DigitalSignalAlgorithm_Lab DigitalSignal_Lab

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Commons.h Source File

Commons.h

00001 #pragma once
00002 
00003 #include "mbed.h"
00004 
00005 #ifndef M_PI
00006 #define M_PI    3.14159265358979323846
00007 #endif
00008 
00009 #ifndef M_PI_2
00010 #define M_PI_2  1.570796326794897
00011 #endif
00012 
00013 #ifndef lround
00014 #define lround(var)    (long)(var+0.5f)
00015 #endif
00016 
00017 /**
00018  * @brief Window rectangle structure
00019  */
00020 typedef struct {
00021     int x1;
00022     int y1;
00023     int x2;
00024     int y2;
00025 } Window;