aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas G. Lockhart <lockhart@fourpalms.org>1998-05-09 22:44:38 +0000
committerThomas G. Lockhart <lockhart@fourpalms.org>1998-05-09 22:44:38 +0000
commit9afe03355a8daa58e55ba34f7e6eee5f0a73c737 (patch)
tree8d005dc53e24e807e4cf1b5e2bed028dbbafac29 /src
parent14257ee2c6cd906af97b7336598cbebe2f4f70fe (diff)
downloadpostgresql-9afe03355a8daa58e55ba34f7e6eee5f0a73c737.tar.gz
postgresql-9afe03355a8daa58e55ba34f7e6eee5f0a73c737.zip
Make lines more visible to the user.
Diffstat (limited to 'src')
-rw-r--r--src/include/utils/geo_decls.h24
1 files changed, 18 insertions, 6 deletions
diff --git a/src/include/utils/geo_decls.h b/src/include/utils/geo_decls.h
index 18529c06cb2..7cd7e880969 100644
--- a/src/include/utils/geo_decls.h
+++ b/src/include/utils/geo_decls.h
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: geo_decls.h,v 1.19 1998/02/26 04:44:00 momjian Exp $
+ * $Id: geo_decls.h,v 1.20 1998/05/09 22:44:38 thomas Exp $
*
* NOTE
* These routines do *not* use the float types from adt/.
@@ -175,6 +175,7 @@ extern bool lseg_lt(LSEG *l1, LSEG *l2);
extern bool lseg_le(LSEG *l1, LSEG *l2);
extern bool lseg_gt(LSEG *l1, LSEG *l2);
extern bool lseg_ge(LSEG *l1, LSEG *l2);
+extern LSEG *lseg_construct(Point *pt1, Point *pt2);
extern double *lseg_length(LSEG *lseg);
extern double *lseg_distance(LSEG *l1, LSEG *l2);
extern Point *lseg_center(LSEG *lseg);
@@ -204,8 +205,22 @@ extern bool inter_sl(LSEG *lseg, LINE *line);
extern bool inter_sb(LSEG *lseg, BOX *box);
extern bool inter_lb(LINE *line, BOX *box);
-/* private routines */
-extern LSEG *lseg_construct(Point *pt1, Point *pt2);
+/* private lseg routines */
+
+/* public line routines */
+extern LINE *line_in(char *str);
+extern char *line_out(LINE *line);
+extern Point *line_interpt(LINE *l1, LINE *l2);
+extern double *line_distance(LINE *l1, LINE *l2);
+extern LINE *line_construct_pp(Point *pt1, Point *pt2);
+extern bool line_intersect(LINE *l1, LINE *l2);
+extern bool line_parallel(LINE *l1, LINE *l2);
+extern bool line_perp(LINE *l1, LINE *l2);
+extern bool line_vertical(LINE *line);
+extern bool line_horizontal(LINE *line);
+extern bool line_eq(LINE *l1, LINE *l2);
+
+/* private line routines */
/* public box routines */
extern BOX *box_in(char *str);
@@ -244,9 +259,6 @@ extern BOX *box_sub(BOX *box, Point *p);
extern BOX *box_mul(BOX *box, Point *p);
extern BOX *box_div(BOX *box, Point *p);
-/* private line routines */
-extern double *line_distance(LINE *l1, LINE *l2);
-
/* public path routines */
extern PATH *path_in(char *str);
extern char *path_out(PATH *path);