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

From Emre Hasegeli
Subject Re: Line intersection point is wrong
Date
Msg-id CAE2gYzxrfOaje7D6vWJvs0FnmFE4MEEcfyb=O6EDzgzC64GzxA@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
List pgsql-bugs
> Hmm, well, what if we change line_parallel() so that what it tests
> is whether (l1->A * l2->B - l2->A * l1->B) is zero?  That seems
> simpler and more symmetric than what it does now.

I was thinking to do so.  I would also check for both sides not to
overflow, but that can wait.  Patch attached.  Unfortunately,
the change causes too much noise on the regression tests.

Attachment

pgsql-bugs by date:

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