GEOS
3.4.2
|
00001 /********************************************************************** 00002 * 00003 * GEOS - Geometry Engine Open Source 00004 * http://geos.osgeo.org 00005 * 00006 * Copyright (C) 2006 Refractions Research Inc. 00007 * 00008 * This is free software; you can redistribute and/or modify it under 00009 * the terms of the GNU Lesser General Public Licence as published 00010 * by the Free Software Foundation. 00011 * See the COPYING file for more information. 00012 * 00013 **********************************************************************/ 00014 00015 #ifndef GEOS_INDEX_STRTREE_INTERVAL_H 00016 #define GEOS_INDEX_STRTREE_INTERVAL_H 00017 00018 #include <geos/export.h> 00019 00020 namespace geos { 00021 namespace index { // geos::index 00022 namespace strtree { // geos::index::strtree 00023 00025 // 00028 class GEOS_DLL Interval { 00029 public: 00030 Interval(Interval *other); 00031 Interval(double newMin, double newMax); 00032 double getCentre(); 00033 Interval* expandToInclude(Interval *other); 00034 bool intersects(Interval *other); 00035 bool equals(void *o); 00036 private: 00037 double imin; 00038 double imax; 00039 }; 00040 00041 00042 } // namespace geos::index::strtree 00043 } // namespace geos::index 00044 } // namespace geos 00045 00046 #endif // GEOS_INDEX_STRTREE_INTERVAL_H