libkovan  1
The kovan standard library
geom.h
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright 2012 KISS Institute for Practical Robotics *
3  * *
4  * This file is part of libkovan. *
5  * *
6  * libkovan is free software: you can redistribute it and/or modify *
7  * it under the terms of the GNU General Public License as published by *
8  * the Free Software Foundation, either version 2 of the License, or *
9  * (at your option) any later version. *
10  * *
11  * libkovan is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with libkovan. Check the LICENSE file in the project root. *
18  * If not, see <http://www.gnu.org/licenses/>. *
19  **************************************************************************/
20 
21 #ifndef _GEOM_H_
22 #define _GEOM_H_
23 
24 #include "export.h"
25 #include "vtable.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 typedef struct point2
32 {
33  int x;
34  int y;
35 } point2;
36 
37 typedef struct point3
38 {
39  int x;
40  int y;
41  int z;
42 } point3;
43 
44 typedef struct rectangle
45 {
46  int ulx;
47  int uly;
48  int width;
49  int height;
50 } rectangle;
51 
52 VF EXPORT_SYM point2 create_point2(int x, int y);
53 VF EXPORT_SYM point3 create_point3(int x, int y, int z);
54 VF EXPORT_SYM rectangle create_rectangle(int ulx, int uly, int width, int height);
55 
56 VFL
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 #endif
VF EXPORT_SYM point3 create_point3(int x, int y, int z)
int height
Definition: geom.h:49
int x
Definition: geom.h:39
Definition: geom.h:37
int z
Definition: geom.h:41
int width
Definition: geom.h:48
struct rectangle rectangle
int uly
Definition: geom.h:47
int y
Definition: geom.h:34
VF EXPORT_SYM point2 create_point2(int x, int y)
int ulx
Definition: geom.h:46
int y
Definition: geom.h:40
struct point3 point3
Definition: geom.h:44
VF EXPORT_SYM rectangle create_rectangle(int ulx, int uly, int width, int height)
struct point2 point2
#define VF
Definition: vtable.h:10
Definition: geom.h:31
#define VFL
Definition: vtable.h:11
#define EXPORT_SYM
Definition: export.h:7
int x
Definition: geom.h:33