Safe Haskell | None |
---|
LSC.Cartesian
Documentation
class (Bifunctor f, Bifoldable f, Integral x, Integral y) => Cartesian f x y where Source #
Minimal complete definition
Nothing
Methods
moveX :: x -> f x y -> f x y Source #
moveY :: y -> f x y -> f x y Source #
center :: f x y -> (x, y) Source #
centerX :: f x y -> x Source #
centerY :: f x y -> y Source #
relocateX :: x -> f x y -> f x y Source #
relocateY :: y -> f x y -> f x y Source #
relocateL :: x -> f x y -> f x y Source #
relocateR :: x -> f x y -> f x y Source #
relocateB :: y -> f x y -> f x y Source #
relocateT :: y -> f x y -> f x y Source #
Instances
Constructors
Line (x, y) (x, y) |
Instances
Bifunctor Line Source # | |
Bifoldable Line Source # | |
(Integral x, Integral y) => Cartesian Line x y Source # | |
Defined in LSC.Cartesian Methods moveX :: x -> Line x y -> Line x y Source # moveY :: y -> Line x y -> Line x y Source # width :: Line x y -> x Source # height :: Line x y -> y Source # center :: Line x y -> (x, y) Source # centerX :: Line x y -> x Source # centerY :: Line x y -> y Source # relocateX :: x -> Line x y -> Line x y Source # relocateY :: y -> Line x y -> Line x y Source # minX :: Line x y -> x Source # maxX :: Line x y -> x Source # minY :: Line x y -> y Source # maxY :: Line x y -> y Source # relocateL :: x -> Line x y -> Line x y Source # relocateR :: x -> Line x y -> Line x y Source # relocateB :: y -> Line x y -> Line x y Source # relocateT :: y -> Line x y -> Line x y Source # | |
HasNetSegments Net [Line' Int] Source # | |
Functor (Line x) Source # | |
Foldable (Line x) Source # | |
Defined in LSC.Cartesian Methods fold :: Monoid m => Line x m -> m foldMap :: Monoid m => (a -> m) -> Line x a -> m foldMap' :: Monoid m => (a -> m) -> Line x a -> m foldr :: (a -> b -> b) -> b -> Line x a -> b foldr' :: (a -> b -> b) -> b -> Line x a -> b foldl :: (b -> a -> b) -> b -> Line x a -> b foldl' :: (b -> a -> b) -> b -> Line x a -> b foldr1 :: (a -> a -> a) -> Line x a -> a foldl1 :: (a -> a -> a) -> Line x a -> a elem :: Eq a => a -> Line x a -> Bool maximum :: Ord a => Line x a -> a | |
(Eq x, Eq y) => Eq (Line x y) Source # | |
(Ord x, Ord y) => Ord (Line x y) Source # | |
(Show x, Show y) => Show (Line x y) Source # | |
Generic (Line x y) Source # | |
(NFData x, NFData y) => NFData (Line x y) Source # | |
Defined in LSC.Cartesian | |
(FromJSON x, FromJSON y) => FromJSON (Line x y) Source # | |
Defined in LSC.Cartesian | |
(ToJSON x, ToJSON y) => ToJSON (Line x y) Source # | |
Defined in LSC.Cartesian Methods toEncoding :: Line x y -> Encoding toJSONList :: [Line x y] -> Value toEncodingList :: [Line x y] -> Encoding | |
type Rep (Line x y) Source # | |
Defined in LSC.Cartesian type Rep (Line x y) = D1 ('MetaData "Line" "LSC.Cartesian" "main" 'False) (C1 ('MetaCons "Line" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (x, y)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (x, y)))) |