- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# Interval.h

    00001 /**********************************************************************
    00002  * $Id: Interval.h 1820 2006-09-06 16:54:23Z mloskot $
    00003  *
    00004  * GEOS - Geometry Engine Open Source
    00005  * http://geos.refractions.net
    00006  *
    00007  * Copyright (C) 2006 Refractions Research Inc.
    00008  *
    00009  * This is free software; you can redistribute and/or modify it under
    00010  * the terms of the GNU Lesser General Public Licence as published
    00011  * by the Free Software Foundation.
    00012  * See the COPYING file for more information.
    00013  *
    00014  **********************************************************************/
    00015
    00016 #ifndef GEOS_INDEX_STRTREE_INTERVAL_H
    00017 #define GEOS_INDEX_STRTREE_INTERVAL_H
    00018
    00019 namespace geos {
    00020 namespace index { // geos::index
    00021 namespace strtree { // geos::index::strtree
    00022
    00024 //
    00027 class Interval {
    00028 public:
    00029         Interval(Interval *other);
    00030         Interval(double newMin, double newMax);
    00031         double getCentre();
    00032         Interval* expandToInclude(Interval *other);
    00033         bool intersects(Interval *other);
    00034         bool equals(void *o);
    00035 private:
    00036         double imin;
    00037         double imax;
    00038 };
    00039
    00040
    00041 } // namespace geos::index::strtree
    00042 } // namespace geos::index
    00043 } // namespace geos
    00044
    00045 #endif // GEOS_INDEX_STRTREE_INTERVAL_H
    00046
    00047 /**********************************************************************
    00048  * $Log$
    00049  * Revision 1.1  2006/03/21 10:47:34  strk
    00050  * indexStrtree.h split
    00051  *
    00052  **********************************************************************/
    00053