Refactor wall points from lists to pairs
This commit is contained in:
+1
-1
@@ -211,7 +211,7 @@ visibleWalls p1 p2 ws
|
||||
. map f
|
||||
$ IM.toList ws
|
||||
where
|
||||
f (i,wl) = (intersectSegSeg' (_wlLine wl !! 0) (_wlLine wl !! 1) p1 p2, (i,wl))
|
||||
f (i,wl) = (uncurry intersectSegSeg' (_wlLine wl) p1 p2, (i,wl))
|
||||
takeUntil h xs =
|
||||
let (ys,zs) = span h xs
|
||||
in ys ++ tf zs
|
||||
|
||||
Reference in New Issue
Block a user