Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
pathgeom.h
Go to the documentation of this file.
1
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
18extern "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;
40
41 typedef struct Pxy_t Ppoint_t;
42 typedef struct Pxy_t Pvector_t;
43#endif
44
45 typedef struct Ppoly_t {
47 size_t pn;
49
51
52 typedef struct 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
Ppoly_t Ppolyline_t
Definition pathgeom.h:50
void freePath(Ppolyline_t *p)
Definition util.c:18
Ppoint_t b
Definition pathgeom.h:53
Ppoint_t a
Definition pathgeom.h:53
size_t pn
Definition pathgeom.h:47
Ppoint_t * ps
Definition pathgeom.h:46
double x
Definition pathgeom.h:38
double y
Definition pathgeom.h:38