libkovan  1
The kovan standard library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 typedef struct point2
31 {
32  int x;
33  int y;
34 } point2;
35 
36 typedef struct point3
37 {
38  int x;
39  int y;
40  int z;
41 } point3;
42 
43 typedef struct rectangle
44 {
45  int ulx;
46  int uly;
47  int width;
48  int height;
49 } rectangle;
50 
51 EXPORT_SYM point2 create_point2(int x, int y);
52 EXPORT_SYM point3 create_point3(int x, int y, int z);
53 EXPORT_SYM rectangle create_rectangle(int ulx, int uly, int width, int height);
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif
int height
Definition: geom.h:48
EXPORT_SYM point3 create_point3(int x, int y, int z)
int x
Definition: geom.h:38
Definition: geom.h:36
int z
Definition: geom.h:40
int width
Definition: geom.h:47
EXPORT_SYM point2 create_point2(int x, int y)
struct rectangle rectangle
int uly
Definition: geom.h:46
EXPORT_SYM rectangle create_rectangle(int ulx, int uly, int width, int height)
int y
Definition: geom.h:33
int ulx
Definition: geom.h:45
int y
Definition: geom.h:39
struct point3 point3
Definition: geom.h:43
struct point2 point2
Definition: geom.h:30
#define EXPORT_SYM
Definition: export.h:7
int x
Definition: geom.h:32