Continue to refactor zoning to be more stream-based
This commit is contained in:
@@ -221,12 +221,6 @@ gameRoomViewpoints p gr = S.each (_grViewpoints gr)
|
||||
|
||||
farWallDistDirection :: Point2 -> World -> Maybe (Float,Float,Float,Float)
|
||||
farWallDistDirection p w = boundPoints
|
||||
-- runIdentity $ L.purely S.fold_ ((,,,)
|
||||
-- <$> L.premap (^?! _2) L.maximum
|
||||
-- <*> L.premap (^?! _2) L.minimum
|
||||
-- <*> L.premap (^?! _1) L.maximum
|
||||
-- <*> L.premap (^?! _1) L.minimum
|
||||
-- )
|
||||
$ S.map f vps
|
||||
where
|
||||
f q = runIdentity (S.fold_ findPoint q (rotateV (negate $ _cameraRot w) . (-.- p)) (wls q))
|
||||
|
||||
Reference in New Issue
Block a user