aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/geo_decls.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2013-10-09 01:09:18 -0400
committerPeter Eisentraut <peter_e@gmx.net>2013-10-09 22:34:38 -0400
commit261c7d4b653bc3e44c31fd456d94f292caa50d8f (patch)
treec908259140d328054336afb57deb1afdc565f534 /src/include/utils/geo_decls.h
parent0ac5e5a7e152504c71ce2168acc9cef7fde7893c (diff)
downloadpostgresql-261c7d4b653bc3e44c31fd456d94f292caa50d8f.tar.gz
postgresql-261c7d4b653bc3e44c31fd456d94f292caa50d8f.zip
Revive line type
Change the input/output format to {A,B,C}, to match the internal representation. Complete the implementations of line_in, line_out, line_recv, line_send. Remove comments and error messages about the line type not being implemented. Add regression tests for existing line operators and functions. Reviewed-by: rui hua <365507506hua@gmail.com> Reviewed-by: Álvaro Herrera <alvherre@2ndquadrant.com> Reviewed-by: Jeevan Chalke <jeevan.chalke@enterprisedb.com>
Diffstat (limited to 'src/include/utils/geo_decls.h')
-rw-r--r--src/include/utils/geo_decls.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/include/utils/geo_decls.h b/src/include/utils/geo_decls.h
index 5c83a71e7aa..1e648c0befc 100644
--- a/src/include/utils/geo_decls.h
+++ b/src/include/utils/geo_decls.h
@@ -88,19 +88,12 @@ typedef struct
/*---------------------------------------------------------------------
* LINE - Specified by its general equation (Ax+By+C=0).
- * If there is a y-intercept, it is C, which
- * incidentally gives a freebie point on the line
- * (if B=0, then C is the x-intercept).
- * Slope m is precalculated to save time; if
- * the line is not vertical, m == A.
*-------------------------------------------------------------------*/
typedef struct
{
double A,
B,
C;
-
- double m;
} LINE;