GEOS 3.6.2
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
20namespace geos {
21namespace index { // geos::index
22namespace strtree { // geos::index::strtree
23
25//
28class GEOS_DLL Interval {
29public:
30 Interval(double newMin, double newMax);
31 double getCentre();
32 Interval* expandToInclude(const Interval *other);
33 bool intersects(const Interval *other) const;
34 bool equals(const Interval *o) const;
35private:
36 double imin;
37 double imax;
38};
39
40
41} // namespace geos::index::strtree
42} // namespace geos::index
43} // namespace geos
44
45#endif // GEOS_INDEX_STRTREE_INTERVAL_H
Contains 2-D and 1-D versions of the Sort-Tile-Recursive (STR) tree, a query-only R-tree.
Definition SIRtreePointInRing.h:32
Provides classes for various kinds of spatial indexes.
Definition IndexedNestedRingTester.h:31
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25