Tweaks before attempting to move zoning out of LWorld
This commit is contained in:
@@ -78,6 +78,7 @@ yIntercepts' s sp ep = map f $ xIntercepts s (f sp) (f ep)
|
||||
f (V2 x y) = V2 y x
|
||||
|
||||
zoneMonoid :: Semigroup m => Int2 -> m -> IM.IntMap (IM.IntMap m) -> IM.IntMap (IM.IntMap m)
|
||||
{-# INLINE zoneMonoid #-}
|
||||
zoneMonoid (V2 x y) a = IM.insertWith f x $! IM.singleton y a
|
||||
where
|
||||
f _ = IM.insertWith (<>) y a
|
||||
|
||||
Reference in New Issue
Block a user