PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ RTreeCreateInterval()

static RTREE_INTERVAL * RTreeCreateInterval ( double  value1,
double  value2 
)
static

Creates an interval given the min and max values, in arbitrary order.

Definition at line 129 of file lwgeom_rtree.c.

130{
131 RTREE_INTERVAL *interval;
132
133 POSTGIS_DEBUGF(2, "RTreeCreateInterval called with %8.3f, %8.3f", value1, value2);
134
135 interval = lwalloc(sizeof(RTREE_INTERVAL));
136 interval->max = FP_MAX(value1, value2);
137 interval->min = FP_MIN(value1, value2);
138
139 POSTGIS_DEBUGF(3, "interval min = %8.3f, max = %8.3f", interval->min, interval->max);
140
141 return interval;
142}
void * lwalloc(size_t size)
Definition lwutil.c:227
#define FP_MAX(A, B)
#define FP_MIN(A, B)
Representation for the y-axis interval spanned by an edge.

References FP_MAX, FP_MIN, lwalloc(), RTREE_INTERVAL::max, and RTREE_INTERVAL::min.

Referenced by RTreeCreateLeafNode().

Here is the call graph for this function:
Here is the caller graph for this function: