ALGO: improve style

This commit is contained in:
hasufell 2014-10-13 22:30:19 +02:00
parent 8300929fd7
commit 077d0442f5
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
1 changed files with 4 additions and 4 deletions

View File

@ -100,12 +100,12 @@ scanH :: [PT] -- ^ the first 3 starting points in reversed order
-> [PT] -- ^ the rest of the points
-> [[PT]] -- ^ all convex hull points iterations for the half
scanH hs@(x:y:z:xs) (r':rs')
| notcw z y x = [hs] ++ scanH (r':hs) rs'
| otherwise = [hs] ++ scanH (x:z:xs) (r':rs')
| notcw z y x = hs : scanH (r':hs) rs'
| otherwise = hs : scanH (x:z:xs) (r':rs')
scanH hs@(x:y:z:xs) []
| notcw z y x = [hs]
| otherwise = [hs] ++ scanH (x:z:xs) []
scanH hs (r':rs') = [hs] ++ scanH (r':hs) rs'
| otherwise = hs : scanH (x:z:xs) []
scanH hs (r':rs') = hs : scanH (r':hs) rs'
scanH hs _ = [hs]