Safe Haskell | None |
---|
- data BoundingBox2' a = BoundingBox2 {
- lowerLeft :: Point2' a
- upperRight :: Point2' a
- class IsBoxable g where
- boundingBox :: Ord a => g a -> BoundingBox2' a
- bbFromList :: Ord a => [g a] -> BoundingBox2' a
- mergeBoxes :: Ord a => [BoundingBox2' a] -> BoundingBox2' a
- bbFromPoints :: Ord a => [Point2' a] -> BoundingBox2' a
- bbLeft :: BoundingBox2' a -> a
- bbRight :: BoundingBox2' a -> a
- bbTop :: BoundingBox2' a -> a
- bbBottom :: BoundingBox2' a -> a
- width :: Num a => BoundingBox2' a -> a
- height :: Num a => BoundingBox2' a -> a
BoundingBoxes
data BoundingBox2' a Source
Bounding boxes
Note that a bounding box is always axis parallel, so rotating may have not | the expected effect
BoundingBox2 | |
|
HasPoints BoundingBox2' | |
IsPoint2Functor BoundingBox2' | |
IsPolygon BoundingBox2' | Bounding boxes can be used as polygons |
Eq a => Eq (BoundingBox2' a) | |
Read a => Read (BoundingBox2' a) | |
Show a => Show (BoundingBox2' a) |
A class of objects for which we can compute a boundingbox
boundingBox :: Ord a => g a -> BoundingBox2' aSource
bbFromList :: Ord a => [g a] -> BoundingBox2' aSource
mergeBoxes :: Ord a => [BoundingBox2' a] -> BoundingBox2' aSource
get the bounding box of a list of things
bbFromPoints :: Ord a => [Point2' a] -> BoundingBox2' aSource
bbLeft :: BoundingBox2' a -> aSource
bbRight :: BoundingBox2' a -> aSource
bbTop :: BoundingBox2' a -> aSource
bbBottom :: BoundingBox2' a -> aSource
width :: Num a => BoundingBox2' a -> aSource
height :: Num a => BoundingBox2' a -> aSource