hgeometry-0.1.1.1: Geometry types in Haskell

Safe HaskellNone

Data.Geometry.BoundingBox

Contents

Synopsis

BoundingBoxes

data BoundingBox2' a Source

Bounding boxes

Note that a bounding box is always axis parallel, so rotating may have not | the expected effect

Constructors

BoundingBox2 

Fields

lowerLeft :: Point2' a
 
upperRight :: Point2' a
 

Instances

class IsBoxable g whereSource

A class of objects for which we can compute a boundingbox

Methods

boundingBox :: Ord a => g a -> BoundingBox2' aSource

bbFromList :: Ord a => [g a] -> BoundingBox2' aSource

Instances

mergeBoxes :: Ord a => [BoundingBox2' a] -> BoundingBox2' aSource

get the bounding box of a list of things