/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/pathplan/pathutil.h

Go to the documentation of this file.
00001 /* $Id: pathutil.h,v 1.2 2005/02/10 23:16:10 erg Exp $ $Revision: 1.2 $ */
00002 /* vim:set shiftwidth=4 ts=8: */
00003 
00004 /**********************************************************
00005 *      This software is part of the graphviz package      *
00006 *                http://www.graphviz.org/                 *
00007 *                                                         *
00008 *            Copyright (c) 1994-2004 AT&T Corp.           *
00009 *                and is licensed under the                *
00010 *            Common Public License, Version 1.0           *
00011 *                      by AT&T Corp.                      *
00012 *                                                         *
00013 *        Information and Software Systems Research        *
00014 *              AT&T Research, Florham Park NJ             *
00015 **********************************************************/
00016 
00017 
00018 
00019 #ifndef _PATHUTIL_INCLUDE
00020 #define _PATHUTIL_INCLUDE
00021 #include <pathplan.h>
00022 
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026 
00027 #ifndef NOT
00028 #define NOT(x)  (!(x))
00029 #endif
00030 #ifndef FALSE
00031 #define FALSE   0
00032 #define TRUE    (NOT(FALSE))
00033 #endif
00034 
00035     typedef double COORD;
00036     extern COORD area2(Ppoint_t, Ppoint_t, Ppoint_t);
00037     extern int wind(Ppoint_t a, Ppoint_t b, Ppoint_t c);
00038     extern COORD dist2(Ppoint_t, Ppoint_t);
00039     extern int intersect(Ppoint_t a, Ppoint_t b, Ppoint_t c, Ppoint_t d);
00040 
00041     int in_poly(Ppoly_t argpoly, Ppoint_t q);
00042     Ppoly_t copypoly(Ppoly_t);
00043     void freepoly(Ppoly_t);
00044 
00045 #ifdef __cplusplus
00046 }
00047 #endif
00048 #endif

Generated on Mon Mar 31 19:03:28 2008 for Graphviz by  doxygen 1.5.1