Debian Codegraph @

lib/pathplan/pathgeom.h

raw
1 /// @file
2 /// @ingroup public_apis
3 /*************************************************************************
4 * Copyright (c) 2011 AT&T Intellectual Property
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v1.0
7 * which accompanies this distribution, and is available at
8 * https://www.eclipse.org/legal/epl-v10.html
9 *
10 * Contributors: Details at https://graphviz.org
11 *************************************************************************/
12
13 #pragma once
14
15 #include <stddef.h>
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 #ifdef GVDLL
22 #ifdef PATHPLAN_EXPORTS
23 #define PATHGEOM_API __declspec(dllexport)
24 #else
25 #define PATHGEOM_API __declspec(dllimport)
26 #endif
27 #endif
28
29 #ifndef PATHGEOM_API
30 #define PATHGEOM_API /* nothing */
31 #endif
32
33 #ifdef HAVE_POINTF_S
34 typedef struct pointf_s Ppoint_t;
35 typedef struct pointf_s Pvector_t;
36 #else
37 typedef struct Pxy_t {
38 double x, y;
39 } Pxy_t;
40
41 typedef struct Pxy_t Ppoint_t;
42 typedef struct Pxy_t Pvector_t;
43 #endif
44
45 typedef struct Ppoly_t {
46 Ppoint_t *ps;
47 size_t pn;
48 } Ppoly_t;
49
50 typedef Ppoly_t Ppolyline_t;
51
52 typedef struct Pedge_t {
53 Ppoint_t a, b;
54 } Pedge_t;
55
56 /* opaque state handle for visibility graph operations */
57 typedef struct vconfig_s vconfig_t;
58
59 PATHGEOM_API void freePath(Ppolyline_t* p);
60
61 #undef PATHGEOM_API
62
63 #ifdef __cplusplus
64 }
65 #endif