GEOS
3.6.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(double newMin, double newMax); 00031 double getCentre(); 00032 Interval* expandToInclude(const Interval *other); 00033 bool intersects(const Interval *other) const; 00034 bool equals(const Interval *o) const; 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