Re: Line intersection point is wrong

Поиск
Список
Период
Сортировка
Искать
От
Emre Hasegeli
Тема
Re: Line intersection point is wrong
Дата
Msg-id
CAE2gYzy7Ne3DE7O2uBpsgbALBr_3CptsagEEu9n6p3JpYvRUdA@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Line intersection point is wrong Emre Hasegeli <emre@hasegeli.com>
Re: Line intersection point is wrong Tom Lane <tgl@sss.pgh.pa.us>
Re: Line intersection point is wrong Emre Hasegeli <emre@hasegeli.com>
Re: Line intersection point is wrong Tom Lane <tgl@sss.pgh.pa.us>
Re: Line intersection point is wrong Tom Lane <tgl@sss.pgh.pa.us>
Re: Line intersection point is wrong Emre Hasegeli <emre@hasegeli.com>
Re: Line intersection point is wrong Emre Hasegeli <emre@hasegeli.com>
Re: Line intersection point is wrong Tom Lane <tgl@sss.pgh.pa.us>
Re: Line intersection point is wrong Emre Hasegeli <emre@hasegeli.com>
Re: Line intersection point is wrong Tom Lane <tgl@sss.pgh.pa.us>
Re: Line intersection point is wrong Emre Hasegeli <emre@hasegeli.com>
Re: Line intersection point is wrong Tom Lane <tgl@sss.pgh.pa.us>
Re: Line intersection point is wrong Emre Hasegeli <emre@hasegeli.com>
> 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 по дате отправления
От: Emre Hasegeli
Дата:
От: Tom Lane
Дата:
FAQ