Fix bug when forming convex hull of game room bounds

This commit is contained in:
2021-09-30 23:46:59 +01:00
parent cb23960bd7
commit 1414d08d88
14 changed files with 51 additions and 16 deletions
+5
View File
@@ -5,6 +5,7 @@ module Picture
, module Color
, blank
, polygon
, polygonWire
, polygonZ
, polygonCol
, poly3
@@ -56,6 +57,10 @@ blank :: Picture
{-# INLINE blank #-}
blank = []
polygonWire :: [Point2] -> Picture
{-# INLINE polygonWire #-}
polygonWire ps = line (ps ++ [head ps])
polygon :: [Point2] -> Picture
{-# INLINE polygon #-}
polygon ps = map f $ polyToTris ps