Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Rect (depth :: *)
- data HRect a = HRect {
- hRectTopLeft :: !(V2 a)
- hRectSize :: !(V2 a)
- type family RectPoint (r :: * -> *) :: * -> *
- type family RectSize (r :: * -> *) :: * -> *
- class IsRect (r :: * -> *) (depth :: *) where
- type Rect2i = Rect Int32
- type Rect2f = Rect CFloat
- type Rect2d = Rect CDouble
- fmapRect :: forall a b. (IsRect Rect a, IsRect HRect a, IsRect Rect b, IsRect HRect b) => (a -> b) -> Rect a -> Rect b
Documentation
Native Haskell represenation of a rectangle.
HRect | |
|
class IsRect (r :: * -> *) (depth :: *) where Source #
toRect :: r depth -> Rect depth Source #
fromRect :: Rect depth -> r depth Source #
toRectIO :: r depth -> IO (Rect depth) Source #
rectTopLeft :: r depth -> RectPoint r depth Source #
rectBottomRight :: r depth -> RectPoint r depth Source #
rectSize :: r depth -> RectSize r depth Source #
rectArea :: r depth -> depth Source #
rectContains :: RectPoint r depth -> r depth -> Bool Source #
fmapRect :: forall a b. (IsRect Rect a, IsRect HRect a, IsRect Rect b, IsRect HRect b) => (a -> b) -> Rect a -> Rect b Source #