Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

pathutil.h

Go to the documentation of this file.
00001 /* $Id: pathutil.h,v 1.1 2005/04/09 03:38:19 roxo Exp $ $Revision: 1.1 $ */
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 #define NOT(x)  (!(x))
00028 #ifndef FALSE
00029 #define FALSE   0
00030 #define TRUE    (NOT(FALSE))
00031 #endif
00032 
00033     typedef double COORD;
00034     extern COORD area2(Ppoint_t, Ppoint_t, Ppoint_t);
00035     extern COORD dist2(Ppoint_t, Ppoint_t);
00036     extern int intersect(Ppoint_t a, Ppoint_t b, Ppoint_t c, Ppoint_t d);
00037 
00038     int in_poly(Ppoly_t argpoly, Ppoint_t q);
00039     Ppoly_t copypoly(Ppoly_t);
00040     void freepoly(Ppoly_t);
00041 
00042 #ifdef __cplusplus
00043 }
00044 #endif
00045 #endif
Untitled Document Pesquisa Psi SourceForge.net Logo