22#include "utils/fmgrprotos.h"
25#define point_point_distance(p1,p2) \
26 DatumGetFloat8(DirectFunctionCall2(point_distance, \
27 PointPGetDatum(p1), PointPGetDatum(p2)))
64 ScanKey orderbys,
int norderbys)
68 *distance = distances;
#define palloc_object(type)
#define palloc_array(type, count)
static float8 get_float8_nan(void)
static Point * DatumGetPointP(Datum X)
static BOX * DatumGetBoxP(Datum X)
BOX * box_copy(BOX *orig)
#define point_point_distance(p1, p2)
double * spg_key_orderbys_distances(Datum key, bool isLeaf, ScanKey orderbys, int norderbys)
static double point_box_distance(Point *point, BOX *box)