keid-geometry-0.1.1.3: Geometry primitives for Keid engine.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Geometry.Tile.Neighbors

Documentation

data Neighbors a Source #

Constructors

Neighbors 

Fields

Instances

Instances details
Foldable Neighbors Source # 
Instance details

Defined in Geometry.Tile.Neighbors

Methods

fold :: Monoid m => Neighbors m -> m Source #

foldMap :: Monoid m => (a -> m) -> Neighbors a -> m Source #

foldMap' :: Monoid m => (a -> m) -> Neighbors a -> m Source #

foldr :: (a -> b -> b) -> b -> Neighbors a -> b Source #

foldr' :: (a -> b -> b) -> b -> Neighbors a -> b Source #

foldl :: (b -> a -> b) -> b -> Neighbors a -> b Source #

foldl' :: (b -> a -> b) -> b -> Neighbors a -> b Source #

foldr1 :: (a -> a -> a) -> Neighbors a -> a Source #

foldl1 :: (a -> a -> a) -> Neighbors a -> a Source #

toList :: Neighbors a -> [a] Source #

null :: Neighbors a -> Bool Source #

length :: Neighbors a -> Int Source #

elem :: Eq a => a -> Neighbors a -> Bool Source #

maximum :: Ord a => Neighbors a -> a Source #

minimum :: Ord a => Neighbors a -> a Source #

sum :: Num a => Neighbors a -> a Source #

product :: Num a => Neighbors a -> a Source #

Traversable Neighbors Source # 
Instance details

Defined in Geometry.Tile.Neighbors

Methods

traverse :: Applicative f => (a -> f b) -> Neighbors a -> f (Neighbors b) Source #

sequenceA :: Applicative f => Neighbors (f a) -> f (Neighbors a) Source #

mapM :: Monad m => (a -> m b) -> Neighbors a -> m (Neighbors b) Source #

sequence :: Monad m => Neighbors (m a) -> m (Neighbors a) Source #

Applicative Neighbors Source # 
Instance details

Defined in Geometry.Tile.Neighbors

Methods

pure :: a -> Neighbors a Source #

(<*>) :: Neighbors (a -> b) -> Neighbors a -> Neighbors b Source #

liftA2 :: (a -> b -> c) -> Neighbors a -> Neighbors b -> Neighbors c Source #

(*>) :: Neighbors a -> Neighbors b -> Neighbors b Source #

(<*) :: Neighbors a -> Neighbors b -> Neighbors a Source #

Functor Neighbors Source # 
Instance details

Defined in Geometry.Tile.Neighbors

Methods

fmap :: (a -> b) -> Neighbors a -> Neighbors b Source #

(<$) :: a -> Neighbors b -> Neighbors a Source #

Generic1 Neighbors Source # 
Instance details

Defined in Geometry.Tile.Neighbors

Associated Types

type Rep1 Neighbors :: k -> Type Source #

Methods

from1 :: forall (a :: k). Neighbors a -> Rep1 Neighbors a Source #

to1 :: forall (a :: k). Rep1 Neighbors a -> Neighbors a Source #

Show a => Show (Neighbors a) Source # 
Instance details

Defined in Geometry.Tile.Neighbors

Eq a => Eq (Neighbors a) Source # 
Instance details

Defined in Geometry.Tile.Neighbors

Ord a => Ord (Neighbors a) Source # 
Instance details

Defined in Geometry.Tile.Neighbors

type Rep1 Neighbors Source # 
Instance details

Defined in Geometry.Tile.Neighbors

directionsWith :: Num a => (a -> a -> b) -> Neighbors b Source #

fromPoints :: Vec2 -> Vec2 -> Neighbors Vec2 Source #