24 lines
344 B
C
24 lines
344 B
C
#ifndef __MY_VERTIX_H__
|
|
#define __MY_VERTIX_H__
|
|
|
|
typedef struct
|
|
{
|
|
float x;
|
|
float y;
|
|
} Point;
|
|
|
|
typedef struct
|
|
{
|
|
int numVertix;
|
|
Point *vertix;
|
|
} Polygon;
|
|
|
|
extern Polygon workspace;
|
|
|
|
#define DUMP_POLYGON_INFO
|
|
|
|
void init_polygon(float *datas, int size);
|
|
|
|
bool is_point_in_workspace(int left, int top, int right, int bottom);
|
|
|
|
#endif |