From 9afe03355a8daa58e55ba34f7e6eee5f0a73c737 Mon Sep 17 00:00:00 2001 From: "Thomas G. Lockhart" Date: Sat, 9 May 1998 22:44:38 +0000 Subject: [PATCH] Make lines more visible to the user. --- src/include/utils/geo_decls.h | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/src/include/utils/geo_decls.h b/src/include/utils/geo_decls.h index 18529c06cb..7cd7e88096 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); -- 2.11.0