Re: Line intersection point is wrong - Mailing list pgsql-bugs

From Emre Hasegeli
Subject Re: Line intersection point is wrong
Date
Msg-id CAE2gYzy7Ne3DE7O2uBpsgbALBr_3CptsagEEu9n6p3JpYvRUdA@mail.gmail.com
Whole thread Raw
In response to Re: Line intersection point is wrong  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Line intersection point is wrong  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
> After working out the algebra by hand, I think the attached is correct
> (and it does pass the regression tests, yay).  I also made the
> line_parallel and line_perp tests more symmetric and zero-divide-free.

It looks better to me, though not completely symmetric:

hasegeli=# select '{0.000001,1000,0}'::line ?|| '{0.00009,90000,0}'::line;
 ?column?
----------
 f
(1 row)

hasegeli=# select '{0.00009,90000,0}'::line ?|| '{0.000001,1000,0}'::line;
 ?column?
----------
 t
(1 row)

pgsql-bugs by date:

Previous
From: Emre Hasegeli
Date:
Subject: Re: Line intersection point is wrong
Next
From: Tom Lane
Date:
Subject: Re: Line intersection point is wrong