|
Graphviz
2.29.20120524.0446
|
00001 /* $Id$ $Revision$ */ 00002 /* vim:set shiftwidth=4 ts=8: */ 00003 00004 /************************************************************************* 00005 * Copyright (c) 2011 AT&T Intellectual Property 00006 * All rights reserved. This program and the accompanying materials 00007 * are made available under the terms of the Eclipse Public License v1.0 00008 * which accompanies this distribution, and is available at 00009 * http://www.eclipse.org/legal/epl-v10.html 00010 * 00011 * Contributors: See CVS logs. Details at http://www.graphviz.org/ 00012 *************************************************************************/ 00013 00014 #ifdef __cplusplus 00015 extern "C" { 00016 #endif 00017 00018 00019 00020 #ifndef GEOMETRY_H 00021 #define GEOMETRY_H 00022 00023 #ifdef HAVE_POINTF_S 00024 typedef pointf Point; 00025 #else 00026 typedef struct Point { 00027 double x, y; 00028 } Point; 00029 #endif 00030 00031 extern Point origin; 00032 00033 extern double xmin, xmax, ymin, ymax; /* extreme x,y values of sites */ 00034 extern double deltax, deltay; /* xmax - xmin, ymax - ymin */ 00035 00036 extern int nsites; /* Number of sites */ 00037 extern int sqrt_nsites; 00038 00039 extern void geominit(void); 00040 extern double dist_2(Point *, Point *); /* Distance squared between two points */ 00041 extern void subpt(Point * a, Point b, Point c); 00042 extern void addpt(Point * a, Point b, Point c); 00043 extern double area_2(Point a, Point b, Point c); 00044 extern int leftOf(Point a, Point b, Point c); 00045 extern int intersection(Point a, Point b, Point c, Point d, Point * p); 00046 00047 #endif 00048 00049 00050 #ifdef __cplusplus 00051 } 00052 #endif
1.7.5