-
Notifications
You must be signed in to change notification settings - Fork 0
/
poi.h
41 lines (32 loc) · 1011 Bytes
/
poi.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef _POI_H
#define _POI_H
#define PI 3.14159265
typedef struct window {
int width;
int height;
char title[32];
}window_t;
typedef struct position {
double x;
double y;
} position_t;
typedef struct poi {
double color[3]; /* color of poi */
double size; /* radius of poi head */
double radius; /* length of poi from head to tail */
double angle; /* position in the circle around the hand */
double speed; /* speed of poi */
int direction; /* 1: clockwise, -1: counter-clockwise */
position_t center; /* location of 'hand' */
struct {
double height; /* height of path */
double width; /* width of path */
double angle; /* position within the path ('circles' only) */
double direction; /* 1: clockwise, -1: counter-clockwise */
double speed; /* speed of path */
position_t center; /* center of path */
}path;
}poi_t;
void draw_poi(poi_t poi);
void draw_path(poi_t poi);
#endif