GEOS
3.9.1
include
geos
index
strtree
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
(
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
;
35
private
:
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
geos::index::strtree::Interval
A contiguous portion of 1D-space. Used internally by SIRtree.
Definition:
strtree/Interval.h:28
geos
Basic namespace for all GEOS functionalities.
Definition:
IndexedNestedRingTester.h:26
Generated by
1.9.1