Safe Haskell | Safe-Inferred |
---|
- type Interval = (Int, Int)
- type Point1d = Int
- inside1d :: Interval -> Point1d -> Bool
- before1d :: Interval -> Point1d -> Bool
- after1d :: Interval -> Point1d -> Bool
- type Point2d = (Int, Int)
- type Dimensions2d = (Int, Int)
- mid :: Interval -> Point1d
- class Geometrical g where
- sameLevelRightOf :: (Geometrical g1, Geometrical g2) => g1 -> g2 -> Bool
Documentation
type Dimensions2d = (Int, Int)Source
(width,height)
class Geometrical g whereSource
Class of objects with rectangular shape and located in a two-dimensional plane.
nwcorner :: g -> Point2dSource
Position of the north-west corner.
dimensions :: g -> Dimensions2dSource
ComponentLike c => Geometrical (c m) |
sameLevelRightOf :: (Geometrical g1, Geometrical g2) => g1 -> g2 -> BoolSource
True if the second object is roughly at the same height and to the right of the first object.