SNAKE_STM32F3
Toggle main menu visibility
Loading...
Searching...
No Matches
2dspace.h
Go to the documentation of this file.
1
11
12
#ifndef INC_2DSPACE_H_
13
#define INC_2DSPACE_H_
14
18
typedef
enum
19
{
20
UP
,
21
DOWN
,
22
LEFT
,
23
RIGHT
,
24
NONE
25
}
direction_t
;
26
30
typedef
struct
31
{
32
int
x
;
33
int
y
;
34
}
vec2_t
;
35
36
#endif
/* SRC_2DSPACE_H_ */
direction_t
direction_t
Movement direction type.
Definition
2dspace.h:19
DOWN
@ DOWN
Definition
2dspace.h:21
UP
@ UP
Definition
2dspace.h:20
NONE
@ NONE
Definition
2dspace.h:24
LEFT
@ LEFT
Definition
2dspace.h:22
RIGHT
@ RIGHT
Definition
2dspace.h:23
vec2_t
X-Y position type.
Definition
2dspace.h:31
vec2_t::x
int x
Definition
2dspace.h:32
vec2_t::y
int y
Definition
2dspace.h:33
firmware
SNAKE_STM32F3
libs
2dspace
2dspace.h
Generated by
1.17.0