ALGO: fix algorithm to show collinear points as part of the hull
There was also a bug to be fixed when doing this. We missed an important pattern match case which casued wrong results.
This commit is contained in:
@@ -66,7 +66,7 @@ ccw a b c =
|
||||
(bx - ax) *
|
||||
(cy - ay) -
|
||||
(by - ay) *
|
||||
(cx - ax) > 0
|
||||
(cx - ax) >= 0
|
||||
where
|
||||
(ax, ay) = unp2 a
|
||||
(bx, by) = unp2 b
|
||||
|
||||
Reference in New Issue
Block a user