Graphviz  2.41.20171026.1811
pathutil.h
Go to the documentation of this file.
1 /* $Id$ $Revision$ */
2 /* vim:set shiftwidth=4 ts=8: */
3 
4 /*************************************************************************
5  * Copyright (c) 2011 AT&T Intellectual Property
6  * All rights reserved. This program and the accompanying materials
7  * are made available under the terms of the Eclipse Public License v1.0
8  * which accompanies this distribution, and is available at
9  * http://www.eclipse.org/legal/epl-v10.html
10  *
11  * Contributors: See CVS logs. Details at http://www.graphviz.org/
12  *************************************************************************/
13 
14 
15 
16 #ifndef _PATHUTIL_INCLUDE
17 #define _PATHUTIL_INCLUDE
18 #define _BLD_pathplan 1
19 
20 #include "pathplan.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 #ifndef NOT
27 #define NOT(x) (!(x))
28 #endif
29 #ifndef FALSE
30 #define FALSE 0
31 #define TRUE (NOT(FALSE))
32 #endif
33 
34 /*visual studio*/
35 #ifdef _WIN32
36 #ifndef PATHPLAN_EXPORTS
37 #define extern __declspec(dllimport)
38 #endif
39 #endif
40 /*end visual studio*/
41  typedef double COORD;
42  extern COORD area2(Ppoint_t, Ppoint_t, Ppoint_t);
43  extern int wind(Ppoint_t a, Ppoint_t b, Ppoint_t c);
44  extern COORD dist2(Ppoint_t, Ppoint_t);
45  extern int intersect(Ppoint_t a, Ppoint_t b, Ppoint_t c, Ppoint_t d);
46 
47  int in_poly(Ppoly_t argpoly, Ppoint_t q);
49  void freepoly(Ppoly_t);
50 
51 #undef extern
52 #ifdef __cplusplus
53 }
54 #endif
55 #endif
void freepoly(Ppoly_t)
Definition: util.c:43
double COORD
Definition: pathutil.h:41
COORD area2(Ppoint_t, Ppoint_t, Ppoint_t)
Definition: visibility.c:56
int intersect(Ppoint_t a, Ppoint_t b, Ppoint_t c, Ppoint_t d)
Definition: visibility.c:153
int in_poly(Ppoly_t argpoly, Ppoint_t q)
Definition: inpoly.c:29
COORD dist2(Ppoint_t, Ppoint_t)
Definition: visibility.c:213
int wind(Ppoint_t a, Ppoint_t b, Ppoint_t c)
Definition: visibility.c:65
Definition: pathgeom.h:26
Ppoly_t copypoly(Ppoly_t)
Definition: util.c:25