Daniel@0: /* $Id: pathgeom.h,v 1.4 2009/06/03 01:10:54 ellson Exp $ $Revision: 1.4 $ */ Daniel@0: /* vim:set shiftwidth=4 ts=8: */ Daniel@0: Daniel@0: /********************************************************** Daniel@0: * This software is part of the graphviz package * Daniel@0: * http://www.graphviz.org/ * Daniel@0: * * Daniel@0: * Copyright (c) 1994-2004 AT&T Corp. * Daniel@0: * and is licensed under the * Daniel@0: * Common Public License, Version 1.0 * Daniel@0: * by AT&T Corp. * Daniel@0: * * Daniel@0: * Information and Software Systems Research * Daniel@0: * AT&T Research, Florham Park NJ * Daniel@0: **********************************************************/ Daniel@0: Daniel@0: Daniel@0: #ifndef _PATHGEOM_INCLUDE Daniel@0: #define _PATHGEOM_INCLUDE Daniel@0: Daniel@0: #ifdef __cplusplus Daniel@0: extern "C" { Daniel@0: #endif Daniel@0: Daniel@0: #ifdef HAVE_POINTF_S Daniel@0: typedef struct pointf_s Ppoint_t; Daniel@0: typedef struct pointf_s Pvector_t; Daniel@0: #else Daniel@0: typedef struct Pxy_t { Daniel@0: double x, y; Daniel@0: } Pxy_t; Daniel@0: Daniel@0: typedef struct Pxy_t Ppoint_t; Daniel@0: typedef struct Pxy_t Pvector_t; Daniel@0: #endif Daniel@0: Daniel@0: typedef struct Ppoly_t { Daniel@0: Ppoint_t *ps; Daniel@0: int pn; Daniel@0: } Ppoly_t; Daniel@0: Daniel@0: typedef Ppoly_t Ppolyline_t; Daniel@0: Daniel@0: typedef struct Pedge_t { Daniel@0: Ppoint_t a, b; Daniel@0: } Pedge_t; Daniel@0: Daniel@0: /* opaque state handle for visibility graph operations */ Daniel@0: typedef struct vconfig_s vconfig_t; Daniel@0: Daniel@0: #ifdef __cplusplus Daniel@0: } Daniel@0: #endif Daniel@0: #endif