提交 c5035643 编写于 作者: T Thomas G. Lockhart

Use better routines from geometry library.

上级 840ea249
/* /*
* $Header: /cvsroot/pgsql/src/test/regress/regress.c,v 1.6 1997/04/22 17:33:00 scrappy Exp $ * $Header: /cvsroot/pgsql/src/test/regress/regress.c,v 1.7 1997/07/29 16:21:12 thomas Exp $
*/ */
#include <float.h> /* faked on sunos */ #include <float.h> /* faked on sunos */
...@@ -128,7 +128,9 @@ interpt_pp(p1,p2) ...@@ -128,7 +128,9 @@ interpt_pp(p1,p2)
Point *retval; Point *retval;
int i,j; int i,j;
LSEG seg1, seg2; LSEG seg1, seg2;
#if FALSE
LINE *ln; LINE *ln;
#endif
bool found; /* We've found the intersection */ bool found; /* We've found the intersection */
found = false; /* Haven't found it yet */ found = false; /* Haven't found it yet */
...@@ -141,8 +143,11 @@ interpt_pp(p1,p2) ...@@ -141,8 +143,11 @@ interpt_pp(p1,p2)
if (lseg_intersect(&seg1, &seg2)) found = true; if (lseg_intersect(&seg1, &seg2)) found = true;
} }
#if FALSE
ln = line_construct_pp(&seg2.p[0], &seg2.p[1]); ln = line_construct_pp(&seg2.p[0], &seg2.p[1]);
retval = interpt_sl(&seg1, ln); retval = interpt_sl(&seg1, ln);
#endif
retval = lseg_interpt( &seg1, &seg2);
return(retval); return(retval);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册