17 lines
268 B
C++
17 lines
268 B
C++
|
#ifndef __RECT_H
|
||
|
#define __RECT_H
|
||
|
|
||
|
#include "math.hpp"
|
||
|
|
||
|
typedef struct
|
||
|
{
|
||
|
int x1, y1, x2, y2;
|
||
|
} Rect;
|
||
|
|
||
|
Rect RectCreate(int, int, int, int);
|
||
|
int RectContains(Rect*, int, int);
|
||
|
void RectAND(Rect*, Rect*, Rect*);
|
||
|
int RectIsVisible(Rect*);
|
||
|
|
||
|
#endif
|