Refactor wall points from lists to pairs
This commit is contained in:
@@ -126,7 +126,7 @@ addWalls qs wl wls = foldr (addPane wl) wls pairs
|
||||
pairs = zip (ps ++ [p]) (p:ps)
|
||||
addPane :: Wall -> (Point2,Point2) -> IM.IntMap Wall -> IM.IntMap Wall
|
||||
addPane wl (p0,p1) wls = IM.insert (newKey wls) (wl
|
||||
{ _wlLine = [p0,p1]
|
||||
{ _wlLine = (p0,p1)
|
||||
, _wlID = newKey wls
|
||||
})
|
||||
wls
|
||||
|
||||
Reference in New Issue
Block a user