Re: Line intersection point is wrong

From: Emre Hasegeli <emre(at)hasegeli(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Line intersection point is wrong
Date: 2016-06-20 21:40:17
Message-ID: CAE2gYzy7Ne3DE7O2uBpsgbALBr_3CptsagEEu9n6p3JpYvRUdA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2016-06-20 21:58:30 Re: Line intersection point is wrong
Previous Message Emre Hasegeli 2016-06-20 21:27:13 Re: Line intersection point is wrong