GEOS 3.4.2

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

- File List

strtree/Interval.h
1 /**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2006 Refractions Research Inc.
7 *
8 * This is free software; you can redistribute and/or modify it under
9 * the terms of the GNU Lesser General Public Licence as published
10 * by the Free Software Foundation.
11 * See the COPYING file for more information.
12 *
13 **********************************************************************/
14
15 #ifndef GEOS_INDEX_STRTREE_INTERVAL_H
16 #define GEOS_INDEX_STRTREE_INTERVAL_H
17
18 #include <geos/export.h>
19
20 namespace geos {
21 namespace index { // geos::index
22 namespace strtree { // geos::index::strtree
23
25 //
28 class GEOS_DLL Interval {
29 public:
30 Interval(Interval *other);
31 Interval(double newMin, double newMax);
32 double getCentre();
33 Interval* expandToInclude(Interval *other);
34 bool intersects(Interval *other);
35 bool equals(void *o);
36 private:
37 double imin;
38 double imax;
39 };
40
41
42 } // namespace geos::index::strtree
43 } // namespace geos::index
44 } // namespace geos
45
46 #endif // GEOS_INDEX_STRTREE_INTERVAL_H