PGROUTING  2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
alpha_driver.h
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 FILE: alpha.h
3 
4 Copyright (c) 2006 Anton A. Patrushev, Orkney, Inc.
5 Mail: project@pgrouting.org
6 
7 ------
8 
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13 
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 
23 ********************************************************************PGR-GNU*/
24 
25 #ifndef SRC_ALPHA_SHAPE_SRC_ALPHA_DRIVER_H_
26 #define SRC_ALPHA_SHAPE_SRC_ALPHA_DRIVER_H_
27 #pragma once
28 
29 #include <stddef.h>
30 
31 #include "../../common/src/pgr_types.h"
32 
33 typedef struct vertex {
34  double x;
35  double y;
36 } vertex_t;
37 
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
43  int alpha_shape(vertex_t *vertices, size_t count, double alpha,
44  vertex_t **res, size_t *res_count, char **err_msg);
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 
51 #endif // SRC_ALPHA_SHAPE_SRC_ALPHA_DRIVER_H_
double y
Definition: alpha_driver.h:35
struct vertex vertex_t
int alpha_shape(vertex_t *vertices, size_t count, double alpha, vertex_t **res, size_t *res_count, char **err_msg)
char * err_msg
Definition: BDATester.cpp:50
double x
Definition: alpha_driver.h:34