Tiny graphics library for STM32F746G-DISCO board

Dependents:   RadarDemo 3DDemo RadarDemoT

Commons.h

Committer:
karpent
Date:
2016-11-11
Revision:
3:1ddc4aa1e5cb
Parent:
0:566855d63a2f

File content as of revision 3:1ddc4aa1e5cb:

#pragma once

#include "mbed.h"

#ifndef M_PI
#define M_PI    3.14159265358979323846
#endif

#ifndef M_PI_2
#define M_PI_2  1.570796326794897
#endif

#ifndef lround
#define lround(var)    (long)(var+0.5f)
#endif

/**
 * @brief Window rectangle structure
 */
typedef struct {
    int x1;
    int y1;
    int x2;
    int y2;
} Window;