Copyright | Copyright (c) 2015 Birte Wagner Sebastian Philipp |
---|---|
License | MIT |
Maintainer | Birte Wagner, Sebastian Philipp (sebastian@spawnhost.de) |
Stability | experimental |
Portability | not portable |
Safe Haskell | Safe |
Language | Haskell2010 |
This module provides a minimal bounding box.
Documentation
Minimal bounding box
Instances
Eq MBB Source # | |
Ord MBB Source # | |
Show MBB Source # | |
Generic MBB Source # | |
Binary MBB Source # | |
type Rep MBB Source # | |
Defined in Data.RTree.MBB type Rep MBB = D1 (MetaData "MBB" "Data.RTree.MBB" "data-r-tree-0.6.0-HxW7KWxwR847heBr9qHG8D" False) (C1 (MetaCons "MBB" PrefixI True) ((S1 (MetaSel (Just "getUlx") SourceUnpack SourceStrict DecidedStrict) (Rec0 Double) :*: S1 (MetaSel (Just "getUly") SourceUnpack SourceStrict DecidedStrict) (Rec0 Double)) :*: (S1 (MetaSel (Just "getBrx") SourceUnpack SourceStrict DecidedStrict) (Rec0 Double) :*: S1 (MetaSel (Just "getBry") SourceUnpack SourceStrict DecidedStrict) (Rec0 Double)))) |
:: Double | x - coordinate of first point |
-> Double | y - coordinate of first point |
-> Double | x - coordinate of second point |
-> Double | x - coordinate of second point |
-> MBB |
created a minimal bounding box (or a rectangle) The first point must be smaller, than the second one. This is unchecked.
intersectMBB :: MBB -> MBB -> Maybe MBB Source #
returns the intersection of both mbbs. Returns Nothing, if they don't intersect.
isPointMBB :: MBB -> Bool Source #