PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | Point |
struct | LSEG |
struct | PATH |
struct | LINE |
struct | BOX |
struct | POLYGON |
struct | CIRCLE |
Functions | |
static bool | FPeq (double A, double B) |
static bool | FPne (double A, double B) |
static bool | FPlt (double A, double B) |
static bool | FPle (double A, double B) |
static bool | FPgt (double A, double B) |
static bool | FPge (double A, double B) |
static Point * | DatumGetPointP (Datum X) |
static Datum | PointPGetDatum (const Point *X) |
static LSEG * | DatumGetLsegP (Datum X) |
static Datum | LsegPGetDatum (const LSEG *X) |
static PATH * | DatumGetPathP (Datum X) |
static PATH * | DatumGetPathPCopy (Datum X) |
static Datum | PathPGetDatum (const PATH *X) |
static LINE * | DatumGetLineP (Datum X) |
static Datum | LinePGetDatum (const LINE *X) |
static BOX * | DatumGetBoxP (Datum X) |
static Datum | BoxPGetDatum (const BOX *X) |
static POLYGON * | DatumGetPolygonP (Datum X) |
static POLYGON * | DatumGetPolygonPCopy (Datum X) |
static Datum | PolygonPGetDatum (const POLYGON *X) |
static CIRCLE * | DatumGetCircleP (Datum X) |
static Datum | CirclePGetDatum (const CIRCLE *X) |
float8 | pg_hypot (float8 x, float8 y) |
#define EPSILON 1.0E-06 |
Definition at line 41 of file geo_decls.h.
#define FPzero | ( | A | ) | (fabs(A) <= EPSILON) |
Definition at line 44 of file geo_decls.h.
#define HYPOT | ( | A, | |
B | |||
) | pg_hypot(A, B) |
Definition at line 91 of file geo_decls.h.
#define PG_GETARG_BOX_P | ( | n | ) | DatumGetBoxP(PG_GETARG_DATUM(n)) |
Definition at line 243 of file geo_decls.h.
#define PG_GETARG_CIRCLE_P | ( | n | ) | DatumGetCircleP(PG_GETARG_DATUM(n)) |
Definition at line 275 of file geo_decls.h.
#define PG_GETARG_LINE_P | ( | n | ) | DatumGetLineP(PG_GETARG_DATUM(n)) |
Definition at line 230 of file geo_decls.h.
#define PG_GETARG_LSEG_P | ( | n | ) | DatumGetLsegP(PG_GETARG_DATUM(n)) |
Definition at line 198 of file geo_decls.h.
#define PG_GETARG_PATH_P | ( | n | ) | DatumGetPathP(PG_GETARG_DATUM(n)) |
Definition at line 216 of file geo_decls.h.
#define PG_GETARG_PATH_P_COPY | ( | n | ) | DatumGetPathPCopy(PG_GETARG_DATUM(n)) |
Definition at line 217 of file geo_decls.h.
#define PG_GETARG_POINT_P | ( | n | ) | DatumGetPointP(PG_GETARG_DATUM(n)) |
Definition at line 185 of file geo_decls.h.
#define PG_GETARG_POLYGON_P | ( | n | ) | DatumGetPolygonP(PG_GETARG_DATUM(n)) |
Definition at line 261 of file geo_decls.h.
#define PG_GETARG_POLYGON_P_COPY | ( | n | ) | DatumGetPolygonPCopy(PG_GETARG_DATUM(n)) |
Definition at line 262 of file geo_decls.h.
#define PG_RETURN_BOX_P | ( | x | ) | return BoxPGetDatum(x) |
Definition at line 244 of file geo_decls.h.
#define PG_RETURN_CIRCLE_P | ( | x | ) | return CirclePGetDatum(x) |
Definition at line 276 of file geo_decls.h.
#define PG_RETURN_LINE_P | ( | x | ) | return LinePGetDatum(x) |
Definition at line 231 of file geo_decls.h.
#define PG_RETURN_LSEG_P | ( | x | ) | return LsegPGetDatum(x) |
Definition at line 199 of file geo_decls.h.
#define PG_RETURN_PATH_P | ( | x | ) | return PathPGetDatum(x) |
Definition at line 218 of file geo_decls.h.
#define PG_RETURN_POINT_P | ( | x | ) | return PointPGetDatum(x) |
Definition at line 186 of file geo_decls.h.
#define PG_RETURN_POLYGON_P | ( | x | ) | return PolygonPGetDatum(x) |
Definition at line 263 of file geo_decls.h.
Definition at line 239 of file geo_decls.h.
References PointerGetDatum().
Referenced by fallbackSplit(), gist_point_compress(), spg_box_quad_choose(), spg_box_quad_leaf_consistent(), spg_box_quad_picksplit(), spg_kd_inner_consistent(), and spg_quad_inner_consistent().
Definition at line 271 of file geo_decls.h.
References PointerGetDatum().
Referenced by gist_point_consistent().
Definition at line 234 of file geo_decls.h.
References DatumGetPointer().
Referenced by fallbackSplit(), gist_bbox_distance(), gist_bbox_zorder_abbrev_convert(), gist_bbox_zorder_cmp(), gist_box_consistent(), gist_box_penalty(), gist_box_picksplit(), gist_box_union(), gist_circle_consistent(), gist_point_consistent(), gist_point_distance(), gist_point_fetch(), gist_poly_consistent(), spg_box_quad_choose(), spg_box_quad_get_scankey_bbox(), spg_box_quad_inner_consistent(), spg_box_quad_picksplit(), spg_kd_inner_consistent(), spg_key_orderbys_distances(), and spg_quad_inner_consistent().
Definition at line 266 of file geo_decls.h.
References DatumGetPointer().
Referenced by gist_circle_compress().
Definition at line 221 of file geo_decls.h.
References DatumGetPointer().
Definition at line 189 of file geo_decls.h.
References DatumGetPointer().
Definition at line 202 of file geo_decls.h.
References PG_DETOAST_DATUM.
Definition at line 176 of file geo_decls.h.
References DatumGetPointer().
Referenced by gist_bbox_distance(), gist_point_compress(), spg_box_quad_inner_consistent(), spg_kd_choose(), spg_kd_inner_consistent(), spg_kd_picksplit(), spg_key_orderbys_distances(), spg_quad_choose(), spg_quad_inner_consistent(), spg_quad_leaf_consistent(), and spg_quad_picksplit().
Definition at line 247 of file geo_decls.h.
References PG_DETOAST_DATUM.
Referenced by gist_poly_compress(), and spg_box_quad_get_scankey_bbox().
Definition at line 252 of file geo_decls.h.
References PG_DETOAST_DATUM_COPY.
|
inlinestatic |
Definition at line 47 of file geo_decls.h.
References EPSILON.
Referenced by box_eq(), circle_eq(), circle_same(), gist_point_consistent_internal(), line_eq(), line_interpt_line(), line_perp(), lseg_contain_point(), lseg_horizontal(), lseg_parallel(), lseg_perp(), lseg_vertical(), on_ppath(), point_eq_point(), point_horiz(), point_invsl(), point_sl(), and point_vert().
|
inlinestatic |
Definition at line 77 of file geo_decls.h.
References EPSILON.
Referenced by box_above_eq(), box_contain_box(), box_ge(), box_overabove(), box_overright(), circle_ge(), circle_overabove(), circle_overright(), contain2D(), contained2D(), gist_point_consistent_internal(), lseg_crossing(), lseg_ge(), overHigher2D(), and overlap2D().
|
inlinestatic |
Definition at line 71 of file geo_decls.h.
References EPSILON.
Referenced by box_above(), box_gt(), box_right(), circle_above(), circle_gt(), circle_right(), gist_point_consistent_internal(), higher2D(), lseg_crossing(), lseg_gt(), point_above(), point_right(), and spg_kd_inner_consistent().
|
inlinestatic |
Definition at line 65 of file geo_decls.h.
References EPSILON.
Referenced by box_below_eq(), box_contain_box(), box_le(), box_ov(), box_overbelow(), box_overleft(), circle_contain(), circle_contained(), circle_le(), circle_overbelow(), circle_overlap(), circle_overleft(), contain2D(), contained2D(), gist_point_consistent_internal(), lseg_crossing(), lseg_le(), overlap2D(), and overLower2D().
|
inlinestatic |
Definition at line 59 of file geo_decls.h.
References EPSILON.
Referenced by box_below(), box_left(), box_lt(), circle_below(), circle_left(), circle_lt(), gist_point_consistent_internal(), lower2D(), lseg_crossing(), lseg_lt(), point_below(), point_left(), and spg_kd_inner_consistent().
|
inlinestatic |
Definition at line 226 of file geo_decls.h.
References PointerGetDatum().
Definition at line 194 of file geo_decls.h.
References PointerGetDatum().
Referenced by interpt_pp().
Definition at line 212 of file geo_decls.h.
References PointerGetDatum().
Definition at line 5519 of file geo_ops.c.
References float_overflow_error(), float_underflow_error(), get_float8_infinity(), get_float8_nan(), unlikely, x, and y.
Definition at line 181 of file geo_decls.h.
References PointerGetDatum().
Referenced by gist_point_consistent(), pt_in_widget(), spg_kd_choose(), spg_kd_picksplit(), spg_quad_choose(), and spg_quad_picksplit().
Definition at line 257 of file geo_decls.h.
References PointerGetDatum().
Referenced by gist_point_consistent().