Skip to content

Commit

Permalink
Tweak special cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramarren committed Oct 7, 2007
1 parent d9ac117 commit b8459d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bentley-ottmann.lisp
Expand Up @@ -73,11 +73,12 @@
(if (not (= y1 y2))
(> y1 y2);normal case
(cond;special cases - intersections
((zerop (B line1))
((zerop (B line1));verticals always above at intersections
t)
((zerop (B line2))
nil)
((or (point-equal-p point (right-endpoint lv))
((or (point-equal-p (right-endpoint lv) (right-endpoint rv))
(point-equal-p point (right-endpoint lv))
(point-equal-p point (right-endpoint rv)));at least one line terminates
(< (- (/ (A line1) (B line1)))
(- (/ (A line2) (B line2)))));order by reverse slopes
Expand Down

0 comments on commit b8459d5

Please sign in to comment.