GRASS Programmer's Manual
6.4.2(2012)
|
#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 [] |
Definition at line 32 of file rect.c.
Referenced by RTreeCombineRect().
Definition at line 31 of file rect.c.
Referenced by RTreeCombineRect().
Definition at line 30 of file rect.c.
Referenced by RTreeCombineRect(), RTreeContained(), RTreeRectSphericalVolume(), RTreeRectSurfaceArea(), and RTreeRectVolume().
#define UnitSphereVolume UnitSphereVolumes[NUMDIMS] |
Definition at line 218 of file rect.c.
Referenced by RTreeRectSphericalVolume().
struct Rect RTreeCombineRect | ( | struct Rect * | R, |
struct Rect * | Rr | ||
) | [read] |
Definition at line 305 of file rect.c.
References Rect::boundary, MAX, MIN, NUMDIMS, r, and Undefined.
Referenced by RTreeNodeCover(), and RTreePickBranch().
int RTreeContained | ( | struct Rect * | R, |
struct Rect * | S | ||
) |
Definition at line 352 of file rect.c.
References Rect::boundary, FALSE, NUMDIMS, gui_modules::psmap_dialogs::s, TRUE, and Undefined.
void RTreeInitRect | ( | struct Rect * | R | ) |
Definition at line 38 of file rect.c.
References Rect::boundary, NUMSIDES, and r.
Referenced by RTreeNodeCover().
struct Rect RTreeNullRect | ( | void | ) | [read] |
Definition at line 52 of file rect.c.
References Rect::boundary, NUMDIMS, and r.
int RTreeOverlap | ( | struct Rect * | R, |
struct Rect * | S | ||
) |
Definition at line 331 of file rect.c.
References Rect::boundary, FALSE, NUMDIMS, gui_modules::psmap_dialogs::s, and TRUE.
Referenced by RTreeSearch().
void RTreePrintRect | ( | struct Rect * | R, |
int | depth | ||
) |
Definition at line 130 of file rect.c.
References Rect::boundary, NUMDIMS, and RTreeTabIn().
RectReal RTreeRectSphericalVolume | ( | struct Rect * | R | ) |
Definition at line 253 of file rect.c.
References Rect::boundary, NUMDIMS, Undefined, and UnitSphereVolume.
Referenced by RTreePickBranch().
RectReal RTreeRectSurfaceArea | ( | struct Rect * | R | ) |
Definition at line 275 of file rect.c.
References Rect::boundary, NUMDIMS, and Undefined.
RectReal RTreeRectVolume | ( | struct Rect * | R | ) |
Definition at line 148 of file rect.c.
References Rect::boundary, NUMDIMS, and Undefined.
const double UnitSphereVolumes[] |