ALGO: fix documentation
This commit is contained in:
parent
70e6ada121
commit
3a1361b463
@ -139,8 +139,7 @@ monotoneDiagonals pts = catMaybes . go $ classifyList pts
|
||||
belowS pt pts' = reverse . takeWhile (/= pt) $ sortedYX pts'
|
||||
|
||||
|
||||
-- |A simple polygon with n vertices can be partitioned into y-monotone pieces
|
||||
-- in O(n log n).
|
||||
-- |Triangulate a y-monotone polygon.
|
||||
triangulate :: [PT] -> [[PT]]
|
||||
triangulate pts =
|
||||
go pts . A.first reverse . splitAt 3 . reverse . sortedYX $ pts
|
||||
|
Loading…
Reference in New Issue
Block a user