#include <stdio.h>
#include <stdlib.h>
#include "assert.h"
#include "index.h"
#include <float.h>
#include <math.h>
#include <grass/gis.h>
Go to the source code of this file.
Defines | |
#define | BIG_NUM (FLT_MAX/4.0) |
#define | Undefined(x) ((x)->boundary[0] > (x)->boundary[NUMDIMS]) |
#define | MIN(a, b) ((a) < (b) ? (a) : (b)) |
#define | MAX(a, b) ((a) > (b) ? (a) : (b)) |
#define | UnitSphereVolume UnitSphereVolumes[NUMDIMS] |
Functions | |
void | RTreeInitRect (struct Rect *R) |
struct Rect | RTreeNullRect (void) |
void | RTreePrintRect (struct Rect *R, int depth) |
RectReal | RTreeRectVolume (struct Rect *R) |
RectReal | RTreeRectSphericalVolume (struct Rect *R) |
RectReal | RTreeRectSurfaceArea (struct Rect *R) |
struct Rect | RTreeCombineRect (struct Rect *R, struct Rect *Rr) |
int | RTreeOverlap (struct Rect *R, struct Rect *S) |
int | RTreeContained (struct Rect *R, struct Rect *S) |
Variables | |
const double | UnitSphereVolumes [] |
#define MAX | ( | a, | |||
b | ) | ((a) > (b) ? (a) : (b)) |
#define Undefined | ( | x | ) | ((x)->boundary[0] > (x)->boundary[NUMDIMS]) |
Definition at line 29 of file rect.c.
Referenced by RTreeCombineRect(), RTreeContained(), RTreeRectSphericalVolume(), RTreeRectSurfaceArea(), and RTreeRectVolume().
#define UnitSphereVolume UnitSphereVolumes[NUMDIMS] |
Definition at line 302 of file rect.c.
References Rect::boundary, MAX, MIN, and Undefined.
Referenced by RTreeNodeCover(), and RTreePickBranch().
void RTreeInitRect | ( | struct Rect * | R | ) |
Definition at line 37 of file rect.c.
References Rect::boundary, and NUMSIDES.
Referenced by RTreeNodeCover().
struct Rect RTreeNullRect | ( | void | ) | [read] |
Definition at line 328 of file rect.c.
References Rect::boundary, FALSE, and TRUE.
Referenced by RTreeSearch().
void RTreePrintRect | ( | struct Rect * | R, | |
int | depth | |||
) |
Definition at line 251 of file rect.c.
References Rect::boundary, and Undefined.
Referenced by RTreePickBranch().
const double UnitSphereVolumes[] |