PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <math.h>
#include "access/spgist_private.h"
#include "utils/float.h"
#include "utils/fmgrprotos.h"
#include "utils/geo_decls.h"
Go to the source code of this file.
Macros | |
#define | point_point_distance(p1, p2) |
Functions | |
static double | point_box_distance (Point *point, BOX *box) |
double * | spg_key_orderbys_distances (Datum key, bool isLeaf, ScanKey orderbys, int norderbys) |
BOX * | box_copy (BOX *orig) |
#define point_point_distance | ( | p1, | |
p2 | |||
) |
Definition at line 82 of file spgproc.c.
References palloc().
Referenced by spg_kd_inner_consistent(), and spg_quad_inner_consistent().
Definition at line 31 of file spgproc.c.
References get_float8_nan(), BOX::high, HYPOT, BOX::low, Point::x, and Point::y.
Referenced by spg_key_orderbys_distances().
Definition at line 63 of file spgproc.c.
References DatumGetBoxP(), DatumGetPointP(), sort-test::key, palloc(), point_box_distance(), point_point_distance, and ScanKeyData::sk_argument.
Referenced by spg_box_quad_leaf_consistent(), spg_kd_inner_consistent(), spg_quad_inner_consistent(), and spg_quad_leaf_consistent().