Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Synopsis
- data Coords a = Coords a a a
- coordsFromString :: [[String]] -> [Coords Int]
- coordsFrom2LayerString :: [String] -> [Coords Int]
- numberOf2LayerAtoms :: [[String]] -> Int
- forNestedCoords :: (Enum a, Num a) => ([z] -> b) -> ([y] -> z) -> ([x] -> y) -> (Coords a -> x) -> Coords a -> b
- newtype PackedCoords = PackedCoords Int
- rotX :: Num a => Coords a -> Coords a
- rotY :: Num a => Coords a -> Coords a
- rotZ :: Num a => Coords a -> Coords a
- primRotations :: Num a => Coords (Coords a -> Coords a)
- rotations :: Num a => [Coords a -> Coords a]
- rotationsGen :: Num a => Coords (Coords a -> Coords a) -> [Coords a -> Coords a]
- type Size = Coords Int
- unpackCoords :: Size -> PackedCoords -> Coords Int
- packCoords :: Size -> Coords Int -> PackedCoords
- normalForm :: (Ord a, Num a) => [Coords a] -> [Coords a]
- size :: [Coords Int] -> Coords Int
- move :: Coords Int -> [Coords Int] -> [Coords Int]
- allPositions :: Size -> [Coords Int] -> [[Coords Int]]
- allOrientations :: (Num a, Ord a) => [Coords a] -> [[Coords a]]
- allOrientationsGen :: (Num a, Ord a) => Coords (Coords a -> Coords a) -> [Coords a] -> [[Coords a]]
Documentation
Coords a a a |
Instances
Functor Coords Source # | |
Applicative Coords Source # | |
Foldable Coords Source # | |
Defined in Math.SetCover.Cuboid fold :: Monoid m => Coords m -> m # foldMap :: Monoid m => (a -> m) -> Coords a -> m # foldr :: (a -> b -> b) -> b -> Coords a -> b # foldr' :: (a -> b -> b) -> b -> Coords a -> b # foldl :: (b -> a -> b) -> b -> Coords a -> b # foldl' :: (b -> a -> b) -> b -> Coords a -> b # foldr1 :: (a -> a -> a) -> Coords a -> a # foldl1 :: (a -> a -> a) -> Coords a -> a # elem :: Eq a => a -> Coords a -> Bool # maximum :: Ord a => Coords a -> a # minimum :: Ord a => Coords a -> a # | |
Traversable Coords Source # | |
Eq a => Eq (Coords a) Source # | |
Ord a => Ord (Coords a) Source # | |
Defined in Math.SetCover.Cuboid | |
Show a => Show (Coords a) Source # | |
numberOf2LayerAtoms :: [[String]] -> Int Source #
forNestedCoords :: (Enum a, Num a) => ([z] -> b) -> ([y] -> z) -> ([x] -> y) -> (Coords a -> x) -> Coords a -> b Source #
newtype PackedCoords Source #
Instances
Eq PackedCoords Source # | |
Defined in Math.SetCover.Cuboid (==) :: PackedCoords -> PackedCoords -> Bool # (/=) :: PackedCoords -> PackedCoords -> Bool # | |
Ord PackedCoords Source # | |
Defined in Math.SetCover.Cuboid compare :: PackedCoords -> PackedCoords -> Ordering # (<) :: PackedCoords -> PackedCoords -> Bool # (<=) :: PackedCoords -> PackedCoords -> Bool # (>) :: PackedCoords -> PackedCoords -> Bool # (>=) :: PackedCoords -> PackedCoords -> Bool # max :: PackedCoords -> PackedCoords -> PackedCoords # min :: PackedCoords -> PackedCoords -> PackedCoords # | |
Show PackedCoords Source # | |
Defined in Math.SetCover.Cuboid showsPrec :: Int -> PackedCoords -> ShowS # show :: PackedCoords -> String # showList :: [PackedCoords] -> ShowS # |
unpackCoords :: Size -> PackedCoords -> Coords Int Source #
packCoords :: Size -> Coords Int -> PackedCoords Source #