/************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-v10.html * * Contributors: Details at https://graphviz.org *************************************************************************/ #pragma once #ifdef __cplusplus extern "C" { #endif /* * this library is derived from an archived home directory of Antonin Guttman * that implemented the ideas described in * "R-trees: a dynamic index structure for spatial searching" * Antonin Guttman, University of California, Berkeley * SIGMOD '84 Proceedings of the 1984 ACM SIGMOD international conference on Management of data * ISBN:0-89791-128-8 * http://dx.doi.org/10.1145/602259.602266 * this copy of the code was retrieved from * http://web.archive.org/web/20030210112132/http://www.es.ucsc.edu/~tonig/rtrees/ * we are using the quadratic node splitter only * we made a few cosmetic changes to fit our needs * per Antonin there is no copyright */ /*----------------------------------------------------------------------------- | Global definitions. -----------------------------------------------------------------------------*/ #ifndef NUMDIMS #define NUMDIMS 2 #endif /*NUMDIMS*/ /* #define NDEBUG */ #define NUMSIDES 2*NUMDIMS /* branching factor of a node */ /* #define NODECARD (int)((PGSIZE-(2*sizeof(int)))/sizeof(struct Branch))*/ #define NODECARD 64 typedef struct RTree RTree_t; #include