libwallaby  v24
The wallaby standard library
geom.h
Go to the documentation of this file.
1 /*
2  * geom.h
3  *
4  * Created on: Nov 13, 2015
5  * Author: Joshua Southerland
6  */
7 
8 #ifndef INCLUDE_WALLABY_GEOM_H_
9 #define INCLUDE_WALLABY_GEOM_H_
10 
11 
12 #include "export.h"
13 #include "vtable.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 typedef struct point2
20 {
21  int x;
22  int y;
23 } point2;
24 
25 typedef struct point3
26 {
27  int x;
28  int y;
29  int z;
30 } point3;
31 
32 typedef struct rectangle
33 {
34  int ulx;
35  int uly;
36  int width;
37  int height;
38 } rectangle;
39 
41 VF EXPORT_SYM point3 create_point3(int x, int y, int z);
42 VF EXPORT_SYM rectangle create_rectangle(int ulx, int uly, int width, int height);
43 
44 VFL
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 
51 #endif /* INCLUDE_WALLABY_GEOM_H_ */
VF EXPORT_SYM point3 create_point3(int x, int y, int z)
int height
Definition: geom.h:37
int x
Definition: geom.h:27
Definition: geom.h:25
int z
Definition: geom.h:29
int width
Definition: geom.h:36
struct rectangle rectangle
int uly
Definition: geom.h:35
int y
Definition: geom.h:22
VF EXPORT_SYM point2 create_point2(int x, int y)
int ulx
Definition: geom.h:34
int y
Definition: geom.h:28
struct point3 point3
Definition: geom.h:32
VF EXPORT_SYM rectangle create_rectangle(int ulx, int uly, int width, int height)
struct point2 point2
#define VF
Definition: vtable.h:19
Definition: geom.h:19
#define VFL
Definition: vtable.h:20
#define EXPORT_SYM
Definition: export.h:14
int x
Definition: geom.h:21