Clarify circle segment intersection
This commit is contained in:
@@ -100,5 +100,5 @@ wallBlips :: Point2 -> Float -> World -> ([Point2], S.Set (Point2, Point2))
|
||||
wallBlips p r = foldMap f . wlsNearCirc p r
|
||||
where
|
||||
f wl = case uncurry (intersectCircSeg p r) $ _wlLine wl of
|
||||
[] -> mempty
|
||||
xs -> (xs, S.singleton (wl ^. wlLine))
|
||||
(Nothing,Nothing) -> mempty
|
||||
(a,b) -> (maybeToList a <> maybeToList b, S.singleton (wl ^. wlLine))
|
||||
|
||||
Reference in New Issue
Block a user