Re: Line intersection point is wrong

Поиск
Список
Период
Сортировка
От Emre Hasegeli
Тема Re: Line intersection point is wrong
Дата
Msg-id CAE2gYzy7Ne3DE7O2uBpsgbALBr_3CptsagEEu9n6p3JpYvRUdA@mail.gmail.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>)
Список 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 по дате отправления:

Предыдущее
От: Emre Hasegeli
Дата:
Сообщение: Re: Line intersection point is wrong
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Line intersection point is wrong