Commit Graph

8 Commits

Author SHA1 Message Date
hasufell 8300929fd7
ALGO: refactor
Move sortedXY to Vector.hs, fix shadowing of scanH.
Simplified grahamCHSteps by making use of a more generalized scanH
function.
2014-10-13 22:06:12 +02:00
hasufell 67ef9fa223
VEC: fix "defaulting... constraint to type Integer" warning 2014-10-13 19:15:09 +02:00
hasufell 0dff1174f2
VEC: style 2014-10-13 19:14:25 +02:00
hasufell 4936023c14
VEC: fix orientation, it was swapped 2014-10-13 02:30:11 +02:00
hasufell f82c948055
ALGO: Improve readability by introducing notcw 2014-10-12 20:37:24 +02:00
hasufell 37b38115ae
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.
2014-10-12 19:19:44 +02:00
hasufell e91fb6cd1e
ALGEBRA: fix ccw 2014-10-12 03:04:36 +02:00
hasufell 6e4c7e47c2
Restructure modules 2014-10-10 17:40:08 +02:00