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) |
float8 | pg_hypot (float8 x, float8 y) |
#define BoxPGetDatum | ( | X | ) | PointerGetDatum(X) |
Definition at line 198 of file geo_decls.h.
#define CirclePGetDatum | ( | X | ) | PointerGetDatum(X) |
Definition at line 210 of file geo_decls.h.
#define DatumGetBoxP | ( | X | ) | ((BOX *) DatumGetPointer(X)) |
Definition at line 197 of file geo_decls.h.
#define DatumGetCircleP | ( | X | ) | ((CIRCLE *) DatumGetPointer(X)) |
Definition at line 209 of file geo_decls.h.
#define DatumGetLineP | ( | X | ) | ((LINE *) DatumGetPointer(X)) |
Definition at line 192 of file geo_decls.h.
#define DatumGetLsegP | ( | X | ) | ((LSEG *) DatumGetPointer(X)) |
Definition at line 180 of file geo_decls.h.
#define DatumGetPathP | ( | X | ) | ((PATH *) PG_DETOAST_DATUM(X)) |
Definition at line 185 of file geo_decls.h.
#define DatumGetPathPCopy | ( | X | ) | ((PATH *) PG_DETOAST_DATUM_COPY(X)) |
Definition at line 186 of file geo_decls.h.
#define DatumGetPointP | ( | X | ) | ((Point *) DatumGetPointer(X)) |
Definition at line 175 of file geo_decls.h.
#define DatumGetPolygonP | ( | X | ) | ((POLYGON *) PG_DETOAST_DATUM(X)) |
Definition at line 202 of file geo_decls.h.
#define DatumGetPolygonPCopy | ( | X | ) | ((POLYGON *) PG_DETOAST_DATUM_COPY(X)) |
Definition at line 203 of file geo_decls.h.
#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 LinePGetDatum | ( | X | ) | PointerGetDatum(X) |
Definition at line 193 of file geo_decls.h.
#define LsegPGetDatum | ( | X | ) | PointerGetDatum(X) |
Definition at line 181 of file geo_decls.h.
#define PathPGetDatum | ( | X | ) | PointerGetDatum(X) |
Definition at line 187 of file geo_decls.h.
#define PG_GETARG_BOX_P | ( | n | ) | DatumGetBoxP(PG_GETARG_DATUM(n)) |
Definition at line 199 of file geo_decls.h.
#define PG_GETARG_CIRCLE_P | ( | n | ) | DatumGetCircleP(PG_GETARG_DATUM(n)) |
Definition at line 211 of file geo_decls.h.
#define PG_GETARG_LINE_P | ( | n | ) | DatumGetLineP(PG_GETARG_DATUM(n)) |
Definition at line 194 of file geo_decls.h.
#define PG_GETARG_LSEG_P | ( | n | ) | DatumGetLsegP(PG_GETARG_DATUM(n)) |
Definition at line 182 of file geo_decls.h.
#define PG_GETARG_PATH_P | ( | n | ) | DatumGetPathP(PG_GETARG_DATUM(n)) |
Definition at line 188 of file geo_decls.h.
#define PG_GETARG_PATH_P_COPY | ( | n | ) | DatumGetPathPCopy(PG_GETARG_DATUM(n)) |
Definition at line 189 of file geo_decls.h.
#define PG_GETARG_POINT_P | ( | n | ) | DatumGetPointP(PG_GETARG_DATUM(n)) |
Definition at line 177 of file geo_decls.h.
#define PG_GETARG_POLYGON_P | ( | n | ) | DatumGetPolygonP(PG_GETARG_DATUM(n)) |
Definition at line 205 of file geo_decls.h.
#define PG_GETARG_POLYGON_P_COPY | ( | n | ) | DatumGetPolygonPCopy(PG_GETARG_DATUM(n)) |
Definition at line 206 of file geo_decls.h.
#define PG_RETURN_BOX_P | ( | x | ) | return BoxPGetDatum(x) |
Definition at line 200 of file geo_decls.h.
#define PG_RETURN_CIRCLE_P | ( | x | ) | return CirclePGetDatum(x) |
Definition at line 212 of file geo_decls.h.
#define PG_RETURN_LINE_P | ( | x | ) | return LinePGetDatum(x) |
Definition at line 195 of file geo_decls.h.
#define PG_RETURN_LSEG_P | ( | x | ) | return LsegPGetDatum(x) |
Definition at line 183 of file geo_decls.h.
#define PG_RETURN_PATH_P | ( | x | ) | return PathPGetDatum(x) |
Definition at line 190 of file geo_decls.h.
#define PG_RETURN_POINT_P | ( | x | ) | return PointPGetDatum(x) |
Definition at line 178 of file geo_decls.h.
#define PG_RETURN_POLYGON_P | ( | x | ) | return PolygonPGetDatum(x) |
Definition at line 207 of file geo_decls.h.
#define PointPGetDatum | ( | X | ) | PointerGetDatum(X) |
Definition at line 176 of file geo_decls.h.
#define PolygonPGetDatum | ( | X | ) | PointerGetDatum(X) |
Definition at line 204 of file geo_decls.h.
|
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 5473 of file geo_ops.c.
References float_overflow_error(), float_underflow_error(), get_float8_infinity(), get_float8_nan(), unlikely, x, and y.