Stop intersectSegSegTest returning True for collinear line pairs
This commit is contained in:
@@ -329,8 +329,8 @@ drawWallSearchRays w = foldMap (f . fst) $ allVisibleWalls w
|
||||
uncurryV translate p (circle 5)
|
||||
<> line [w ^. wCam . camViewFrom, p]
|
||||
|
||||
viewBoundaries :: World -> Picture
|
||||
viewBoundaries w =
|
||||
viewGameRoomBoundaries :: World -> Picture
|
||||
viewGameRoomBoundaries w =
|
||||
setLayer DebugLayer $
|
||||
color green (foldMap (polygonWire . _grBound) grs)
|
||||
<> color yellow (foldMap (\q -> line [p, q]) $ getViewpoints p (_cWorld w))
|
||||
@@ -338,6 +338,15 @@ viewBoundaries w =
|
||||
p = w ^. wCam . camViewFrom
|
||||
grs = filter (pointInOrOnPolygon p . _grBound) (_cwgGameRooms $ _cwGen $ _cWorld w)
|
||||
|
||||
viewRoomBoundaries :: World -> Picture
|
||||
viewRoomBoundaries w =
|
||||
setLayer DebugLayer $
|
||||
color green (foldMap (foldMap polygonWire . _grRmBounds) grs)
|
||||
-- <> color yellow (foldMap (\q -> line [p, q]) $ getViewpoints p (_cWorld w))
|
||||
where
|
||||
p = w ^. wCam . camViewFrom
|
||||
grs = filter (pointInOrOnPolygon p . _grBound) (_cwgGameRooms $ _cwGen $ _cWorld w)
|
||||
|
||||
viewClipBounds :: Config -> World -> Picture
|
||||
viewClipBounds cfig w
|
||||
| _debug_view_clip_bounds cfig == AllRoomClipBoundaries =
|
||||
|
||||
Reference in New Issue
Block a user