This file is indexed.

/usr/share/doc/libghc-diagrams-lib-doc/html/Diagrams-BoundingBox.html is in libghc-diagrams-lib-doc 1.3.1.4-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Diagrams.BoundingBox</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Diagrams-BoundingBox.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Diagrams-BoundingBox.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">diagrams-lib-1.3.1.4: Embedded domain-specific language for declarative graphics</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>(c) 2011-2015 diagrams-lib team (see LICENSE)</td></tr><tr><th>License</th><td>BSD-style (see LICENSE)</td></tr><tr><th>Maintainer</th><td>diagrams-discuss@googlegroups.com</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Diagrams.BoundingBox</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Bounding boxes</a></li><li><a href="#g:2">Constructing bounding boxes</a></li><li><a href="#g:3">Queries on bounding boxes</a></li><li><a href="#g:4">Operations on bounding boxes</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Bounding boxes are not very compositional (<em>e.g.</em> it is not
 possible to do anything sensible with them under rotation), so they
 are not used in the diagrams core.  However, they do have their
 uses; this module provides definitions and functions for working
 with them.</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:BoundingBox">BoundingBox</a> v n</li><li class="src short"><a href="#v:emptyBox">emptyBox</a> :: <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n</li><li class="src short"><a href="#v:fromCorners">fromCorners</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Foldable.html#t:Foldable">Foldable</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="Diagrams-Points.html#t:Point">Point</a> v n -&gt; <a href="Diagrams-Points.html#t:Point">Point</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n</li><li class="src short"><a href="#v:fromPoint">fromPoint</a> :: <a href="Diagrams-Points.html#t:Point">Point</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n</li><li class="src short"><a href="#v:fromPoints">fromPoints</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; [<a href="Diagrams-Points.html#t:Point">Point</a> v n] -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n</li><li class="src short"><a href="#v:boundingBox">boundingBox</a> :: (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:InSpace">InSpace</a> v n a, <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Transform.html#t:HasBasis">HasBasis</a> v, <a href="Diagrams-Envelope.html#t:Enveloped">Enveloped</a> a) =&gt; a -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n</li><li class="src short"><a href="#v:isEmptyBox">isEmptyBox</a> :: <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:getCorners">getCorners</a> :: <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Diagrams-Points.html#t:Point">Point</a> v n, <a href="Diagrams-Points.html#t:Point">Point</a> v n)</li><li class="src short"><a href="#v:getAllCorners">getAllCorners</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Traversable.html#t:Traversable">Traversable</a> v) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; [<a href="Diagrams-Points.html#t:Point">Point</a> v n]</li><li class="src short"><a href="#v:boxExtents">boxExtents</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Num">Num</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; v n</li><li class="src short"><a href="#v:boxCenter">boxCenter</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Fractional">Fractional</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Diagrams-Points.html#t:Point">Point</a> v n)</li><li class="src short"><a href="#v:mCenterPoint">mCenterPoint</a> :: (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:InSpace">InSpace</a> v n a, <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Transform.html#t:HasBasis">HasBasis</a> v, <a href="Diagrams-Envelope.html#t:Enveloped">Enveloped</a> a) =&gt; a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Diagrams-Points.html#t:Point">Point</a> v n)</li><li class="src short"><a href="#v:centerPoint">centerPoint</a> :: (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:InSpace">InSpace</a> v n a, <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Transform.html#t:HasBasis">HasBasis</a> v, <a href="Diagrams-Envelope.html#t:Enveloped">Enveloped</a> a) =&gt; a -&gt; <a href="Diagrams-Points.html#t:Point">Point</a> v n</li><li class="src short"><a href="#v:boxTransform">boxTransform</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Fractional">Fractional</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Diagrams-Transform.html#t:Transformation">Transformation</a> v n)</li><li class="src short"><a href="#v:boxFit">boxFit</a> :: (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:InSpace">InSpace</a> v n a, <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Transform.html#t:HasBasis">HasBasis</a> v, <a href="Diagrams-Envelope.html#t:Enveloped">Enveloped</a> a, <a href="Diagrams-Transform.html#t:Transformable">Transformable</a> a, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Monoid">Monoid</a> a) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; a -&gt; a</li><li class="src short"><a href="#v:contains">contains</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Foldable.html#t:Foldable">Foldable</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-Points.html#t:Point">Point</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:contains-39-">contains'</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Foldable.html#t:Foldable">Foldable</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-Points.html#t:Point">Point</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:boundingBoxQuery">boundingBoxQuery</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Foldable.html#t:Foldable">Foldable</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-Query.html#t:Query">Query</a> v n <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Any">Any</a></li><li class="src short"><a href="#v:inside">inside</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Foldable.html#t:Foldable">Foldable</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:inside-39-">inside'</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Foldable.html#t:Foldable">Foldable</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:outside">outside</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Foldable.html#t:Foldable">Foldable</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:outside-39-">outside'</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Foldable.html#t:Foldable">Foldable</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:union">union</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n</li><li class="src short"><a href="#v:intersection">intersection</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Foldable.html#t:Foldable">Foldable</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n</li></ul></div><div id="interface"><h1 id="g:1">Bounding boxes</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:BoundingBox" class="def">BoundingBox</a> v n <a href="src/Diagrams-BoundingBox.html#BoundingBox" class="link">Source</a> <a href="#t:BoundingBox" class="selflink">#</a></p><div class="doc"><p>A bounding box is an axis-aligned region determined by two points
   indicating its &quot;lower&quot; and &quot;upper&quot; corners.  It can also represent
   an empty bounding box - the points are wrapped in <code>Maybe</code>.</p></div><div class="subs instances"><p id="control.i:BoundingBox" class="caption collapser" onclick="toggleSection('i:BoundingBox')">Instances</p><div id="section.i:BoundingBox" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:BoundingBox:Functor:1" class="instance expander" onclick="toggleSection('i:id:BoundingBox:Functor:1')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> v =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Functor.html#t:Functor">Functor</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v)</span> <a href="src/Diagrams-BoundingBox.html#line-95" class="link">Source</a> <a href="#t:BoundingBox" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:BoundingBox:Functor:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:fmap">fmap</a> :: (a -&gt; b) -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v a -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v b <a href="#v:fmap" class="selflink">#</a></p><p class="src"><a href="#v:-60--36-">(&lt;$)</a> :: a -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v b -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v a <a href="#v:-60--36-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:BoundingBox:Eq:2" class="instance expander" onclick="toggleSection('i:id:BoundingBox:Eq:2')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Eq.html#t:Eq">Eq</a> (v n) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Eq.html#t:Eq">Eq</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n)</span> <a href="src/Diagrams-BoundingBox.html#line-95" class="link">Source</a> <a href="#t:BoundingBox" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:BoundingBox:Eq:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-61--61-">(==)</a> :: <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-61--61-" class="selflink">#</a></p><p class="src"><a href="#v:-47--61-">(/=)</a> :: <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="#v:-47--61-" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:BoundingBox:Read:3" class="instance expander" onclick="toggleSection('i:id:BoundingBox:Read:3')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Read.html#t:Read">Read</a> (v n) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Read.html#t:Read">Read</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n)</span> <a href="src/Diagrams-BoundingBox.html#line-146" class="link">Source</a> <a href="#t:BoundingBox" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:BoundingBox:Read:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:readsPrec">readsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n) <a href="#v:readsPrec" class="selflink">#</a></p><p class="src"><a href="#v:readList">readList</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-ParserCombinators-ReadP.html#t:ReadS">ReadS</a> [<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n] <a href="#v:readList" class="selflink">#</a></p><p class="src"><a href="#v:readPrec">readPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n) <a href="#v:readPrec" class="selflink">#</a></p><p class="src"><a href="#v:readListPrec">readListPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-ParserCombinators-ReadPrec.html#t:ReadPrec">ReadPrec</a> [<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n] <a href="#v:readListPrec" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:BoundingBox:Show:4" class="instance expander" onclick="toggleSection('i:id:BoundingBox:Show:4')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:Show">Show</a> (v n) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:Show">Show</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n)</span> <a href="src/Diagrams-BoundingBox.html#line-140" class="link">Source</a> <a href="#t:BoundingBox" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:BoundingBox:Show:4" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n] -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Text-Show.html#t:ShowS">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:BoundingBox:Semigroup:5" class="instance expander" onclick="toggleSection('i:id:BoundingBox:Semigroup:5')"></span> (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Semigroup.html#t:Semigroup">Semigroup</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n)</span> <a href="src/Diagrams-BoundingBox.html#line-97" class="link">Source</a> <a href="#t:BoundingBox" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:BoundingBox:Semigroup:5" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:-60--62-">(&lt;&gt;)</a> :: <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n <a href="#v:-60--62-" class="selflink">#</a></p><p class="src"><a href="#v:sconcat">sconcat</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-List-NonEmpty.html#t:NonEmpty">NonEmpty</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n) -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n <a href="#v:sconcat" class="selflink">#</a></p><p class="src"><a href="#v:stimes">stimes</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Integral">Integral</a> b =&gt; b -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n <a href="#v:stimes" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:BoundingBox:Monoid:6" class="instance expander" onclick="toggleSection('i:id:BoundingBox:Monoid:6')"></span> (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Monoid">Monoid</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n)</span> <a href="src/Diagrams-BoundingBox.html#line-98" class="link">Source</a> <a href="#t:BoundingBox" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:BoundingBox:Monoid:6" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:mempty">mempty</a> :: <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n <a href="#v:mempty" class="selflink">#</a></p><p class="src"><a href="#v:mappend">mappend</a> :: <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n <a href="#v:mappend" class="selflink">#</a></p><p class="src"><a href="#v:mconcat">mconcat</a> :: [<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n] -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n <a href="#v:mconcat" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:BoundingBox:Enveloped:7" class="instance expander" onclick="toggleSection('i:id:BoundingBox:Enveloped:7')"></span> (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Metric.html#t:Metric">Metric</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Traversable.html#t:Traversable">Traversable</a> v, <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Envelope.html#t:OrderedField">OrderedField</a> n) =&gt; <a href="Diagrams-Envelope.html#t:Enveloped">Enveloped</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n)</span> <a href="src/Diagrams-BoundingBox.html#line-121" class="link">Source</a> <a href="#t:BoundingBox" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:BoundingBox:Enveloped:7" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:getEnvelope">getEnvelope</a> :: <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-Envelope.html#t:Envelope">Envelope</a> (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:V">V</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n)) (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:N">N</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n)) <a href="#v:getEnvelope" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:BoundingBox:Traced:8" class="instance expander" onclick="toggleSection('i:id:BoundingBox:Traced:8')"></span> <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Types.html#t:TypeableFloat">TypeableFloat</a> n =&gt; <a href="Diagrams-Trace.html#t:Traced">Traced</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> <a href="Diagrams-ThreeD-Types.html#t:V3">V3</a> n)</span> <a href="src/Diagrams-BoundingBox.html#line-132" class="link">Source</a> <a href="#t:BoundingBox" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:BoundingBox:Traced:8" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:getTrace">getTrace</a> :: <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> <a href="Diagrams-ThreeD-Types.html#t:V3">V3</a> n -&gt; <a href="Diagrams-Trace.html#t:Trace">Trace</a> (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:V">V</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> <a href="Diagrams-ThreeD-Types.html#t:V3">V3</a> n)) (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:N">N</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> <a href="Diagrams-ThreeD-Types.html#t:V3">V3</a> n)) <a href="#v:getTrace" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:BoundingBox:Traced:9" class="instance expander" onclick="toggleSection('i:id:BoundingBox:Traced:9')"></span> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:RealFloat">RealFloat</a> n =&gt; <a href="Diagrams-Trace.html#t:Traced">Traced</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> <a href="Diagrams-TwoD-Types.html#t:V2">V2</a> n)</span> <a href="src/Diagrams-BoundingBox.html#line-127" class="link">Source</a> <a href="#t:BoundingBox" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:BoundingBox:Traced:9" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:getTrace">getTrace</a> :: <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> <a href="Diagrams-TwoD-Types.html#t:V2">V2</a> n -&gt; <a href="Diagrams-Trace.html#t:Trace">Trace</a> (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:V">V</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> <a href="Diagrams-TwoD-Types.html#t:V2">V2</a> n)) (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:N">N</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> <a href="Diagrams-TwoD-Types.html#t:V2">V2</a> n)) <a href="#v:getTrace" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:BoundingBox:HasOrigin:10" class="instance expander" onclick="toggleSection('i:id:BoundingBox:HasOrigin:10')"></span> (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Num">Num</a> n) =&gt; <a href="Diagrams-Transform.html#t:HasOrigin">HasOrigin</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n)</span> <a href="src/Diagrams-BoundingBox.html#line-116" class="link">Source</a> <a href="#t:BoundingBox" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:BoundingBox:HasOrigin:10" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:moveOriginTo">moveOriginTo</a> :: <a href="Diagrams-Points.html#t:Point">Point</a> (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:V">V</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n)) (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:N">N</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n)) -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n <a href="#v:moveOriginTo" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:BoundingBox:AsEmpty:11" class="instance expander" onclick="toggleSection('i:id:BoundingBox:AsEmpty:11')"></span> <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Empty.html#t:AsEmpty">AsEmpty</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n)</span> <a href="src/Diagrams-BoundingBox.html#line-100" class="link">Source</a> <a href="#t:BoundingBox" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:BoundingBox:AsEmpty:11" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:_Empty">_Empty</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Prism-39-">Prism'</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n) () <a href="#v:_Empty" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:BoundingBox:Alignable:12" class="instance expander" onclick="toggleSection('i:id:BoundingBox:Alignable:12')"></span> (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Metric.html#t:Metric">Metric</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Traversable.html#t:Traversable">Traversable</a> v, <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Envelope.html#t:OrderedField">OrderedField</a> n) =&gt; <a href="Diagrams-Align.html#t:Alignable">Alignable</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n)</span> <a href="src/Diagrams-BoundingBox.html#line-137" class="link">Source</a> <a href="#t:BoundingBox" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:BoundingBox:Alignable:12" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:alignBy-39-">alignBy'</a> :: (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:InSpace">InSpace</a> v n (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n), <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Fractional">Fractional</a> n, <a href="Diagrams-Transform.html#t:HasOrigin">HasOrigin</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n)) =&gt; (v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-Points.html#t:Point">Point</a> v n) -&gt; v n -&gt; n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n <a href="src/Diagrams-Align.html#alignBy%27" class="link">Source</a> <a href="#v:alignBy-39-" class="selflink">#</a></p><p class="src"><a href="#v:defaultBoundary">defaultBoundary</a> :: (((<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a>) ~ <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:V">V</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n)) v, (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Kind.html#t:-42-">*</a> ~ <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:N">N</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n)) n) =&gt; v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-Points.html#t:Point">Point</a> v n <a href="src/Diagrams-Align.html#defaultBoundary" class="link">Source</a> <a href="#v:defaultBoundary" class="selflink">#</a></p><p class="src"><a href="#v:alignBy">alignBy</a> :: (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:InSpace">InSpace</a> v n (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n), <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Fractional">Fractional</a> n, <a href="Diagrams-Transform.html#t:HasOrigin">HasOrigin</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n)) =&gt; v n -&gt; n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n <a href="src/Diagrams-Align.html#alignBy" class="link">Source</a> <a href="#v:alignBy" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:BoundingBox:Each:13" class="instance expander" onclick="toggleSection('i:id:BoundingBox:Each:13')"></span> (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v', <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Foldable.html#t:Foldable">Foldable</a> v', <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n') =&gt; <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Each.html#t:Each">Each</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n) (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v' n') (<a href="Diagrams-Points.html#t:Point">Point</a> v n) (<a href="Diagrams-Points.html#t:Point">Point</a> v' n')</span> <a href="src/Diagrams-BoundingBox.html#line-104" class="link">Source</a> <a href="#t:BoundingBox" class="selflink">#</a></td><td class="doc"><p>Only valid if the second point is not smaller than the first.</p></td></tr><tr><td colspan="2"><div id="section.i:id:BoundingBox:Each:13" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:each">each</a> :: <a href="file:///usr/share/doc/libghc-lens-doc/html/Control-Lens-Type.html#t:Traversal">Traversal</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n) (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v' n') (<a href="Diagrams-Points.html#t:Point">Point</a> v n) (<a href="Diagrams-Points.html#t:Point">Point</a> v' n') <a href="#v:each" class="selflink">#</a></p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:BoundingBox:V:14" class="instance expander" onclick="toggleSection('i:id:BoundingBox:V:14')"></span> <span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:V">V</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n)</span> <a href="src/Diagrams-BoundingBox.html#line-109" class="link">Source</a> <a href="#t:BoundingBox" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:BoundingBox:V:14" class="inst-details hide"><div class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:V">V</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n) = v</div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:id:BoundingBox:N:15" class="instance expander" onclick="toggleSection('i:id:BoundingBox:N:15')"></span> <span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:N">N</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n)</span> <a href="src/Diagrams-BoundingBox.html#line-110" class="link">Source</a> <a href="#t:BoundingBox" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:id:BoundingBox:N:15" class="inst-details hide"><div class="src"><span class="keyword">type</span> <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:N">N</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n) = n</div></div></td></tr></table></div></div></div><h1 id="g:2">Constructing bounding boxes</h1><div class="top"><p class="src"><a id="v:emptyBox" class="def">emptyBox</a> :: <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n <a href="src/Diagrams-BoundingBox.html#emptyBox" class="link">Source</a> <a href="#v:emptyBox" class="selflink">#</a></p><div class="doc"><p>An empty bounding box.  This is the same thing as <code>mempty</code>, but it doesn't
   require the same type constraints that the <code>Monoid</code> instance does.</p></div></div><div class="top"><p class="src"><a id="v:fromCorners" class="def">fromCorners</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Foldable.html#t:Foldable">Foldable</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="Diagrams-Points.html#t:Point">Point</a> v n -&gt; <a href="Diagrams-Points.html#t:Point">Point</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n <a href="src/Diagrams-BoundingBox.html#fromCorners" class="link">Source</a> <a href="#v:fromCorners" class="selflink">#</a></p><div class="doc"><p>Create a bounding box from a point that is component-wise <code>(&lt;=)</code> than the
   other.  If this is not the case, then <code>mempty</code> is returned.</p></div></div><div class="top"><p class="src"><a id="v:fromPoint" class="def">fromPoint</a> :: <a href="Diagrams-Points.html#t:Point">Point</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n <a href="src/Diagrams-BoundingBox.html#fromPoint" class="link">Source</a> <a href="#v:fromPoint" class="selflink">#</a></p><div class="doc"><p>Create a degenerate bounding &quot;box&quot; containing only a single point.</p></div></div><div class="top"><p class="src"><a id="v:fromPoints" class="def">fromPoints</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; [<a href="Diagrams-Points.html#t:Point">Point</a> v n] -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n <a href="src/Diagrams-BoundingBox.html#fromPoints" class="link">Source</a> <a href="#v:fromPoints" class="selflink">#</a></p><div class="doc"><p>Create the smallest bounding box containing all the given points.</p></div></div><div class="top"><p class="src"><a id="v:boundingBox" class="def">boundingBox</a> :: (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:InSpace">InSpace</a> v n a, <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Transform.html#t:HasBasis">HasBasis</a> v, <a href="Diagrams-Envelope.html#t:Enveloped">Enveloped</a> a) =&gt; a -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n <a href="src/Diagrams-BoundingBox.html#boundingBox" class="link">Source</a> <a href="#v:boundingBox" class="selflink">#</a></p><div class="doc"><p>Create a bounding box for any enveloped object (such as a diagram or path).</p></div></div><h1 id="g:3">Queries on bounding boxes</h1><div class="top"><p class="src"><a id="v:isEmptyBox" class="def">isEmptyBox</a> :: <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/Diagrams-BoundingBox.html#isEmptyBox" class="link">Source</a> <a href="#v:isEmptyBox" class="selflink">#</a></p><div class="doc"><p>Queries whether the BoundingBox is empty.</p></div></div><div class="top"><p class="src"><a id="v:getCorners" class="def">getCorners</a> :: <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Diagrams-Points.html#t:Point">Point</a> v n, <a href="Diagrams-Points.html#t:Point">Point</a> v n) <a href="src/Diagrams-BoundingBox.html#getCorners" class="link">Source</a> <a href="#v:getCorners" class="selflink">#</a></p><div class="doc"><p>Gets the lower and upper corners that define the bounding box.</p></div></div><div class="top"><p class="src"><a id="v:getAllCorners" class="def">getAllCorners</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Traversable.html#t:Traversable">Traversable</a> v) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; [<a href="Diagrams-Points.html#t:Point">Point</a> v n] <a href="src/Diagrams-BoundingBox.html#getAllCorners" class="link">Source</a> <a href="#v:getAllCorners" class="selflink">#</a></p><div class="doc"><p>Computes all of the corners of the bounding box.</p></div></div><div class="top"><p class="src"><a id="v:boxExtents" class="def">boxExtents</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Num">Num</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; v n <a href="src/Diagrams-BoundingBox.html#boxExtents" class="link">Source</a> <a href="#v:boxExtents" class="selflink">#</a></p><div class="doc"><p>Get the size of the bounding box - the vector from the (component-wise)
   lesser point to the greater point.</p></div></div><div class="top"><p class="src"><a id="v:boxCenter" class="def">boxCenter</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Fractional">Fractional</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Diagrams-Points.html#t:Point">Point</a> v n) <a href="src/Diagrams-BoundingBox.html#boxCenter" class="link">Source</a> <a href="#v:boxCenter" class="selflink">#</a></p><div class="doc"><p>Get the center point in a bounding box.</p></div></div><div class="top"><p class="src"><a id="v:mCenterPoint" class="def">mCenterPoint</a> :: (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:InSpace">InSpace</a> v n a, <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Transform.html#t:HasBasis">HasBasis</a> v, <a href="Diagrams-Envelope.html#t:Enveloped">Enveloped</a> a) =&gt; a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Diagrams-Points.html#t:Point">Point</a> v n) <a href="src/Diagrams-BoundingBox.html#mCenterPoint" class="link">Source</a> <a href="#v:mCenterPoint" class="selflink">#</a></p><div class="doc"><p>Get the center of a the bounding box of an enveloped object, return
   <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#v:Nothing">Nothing</a></code> for object with empty envelope.</p></div></div><div class="top"><p class="src"><a id="v:centerPoint" class="def">centerPoint</a> :: (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:InSpace">InSpace</a> v n a, <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Transform.html#t:HasBasis">HasBasis</a> v, <a href="Diagrams-Envelope.html#t:Enveloped">Enveloped</a> a) =&gt; a -&gt; <a href="Diagrams-Points.html#t:Point">Point</a> v n <a href="src/Diagrams-BoundingBox.html#centerPoint" class="link">Source</a> <a href="#v:centerPoint" class="selflink">#</a></p><div class="doc"><p>Get the center of a the bounding box of an enveloped object, return
   the origin for object with empty envelope.</p></div></div><div class="top"><p class="src"><a id="v:boxTransform" class="def">boxTransform</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Fractional">Fractional</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Diagrams-Transform.html#t:Transformation">Transformation</a> v n) <a href="src/Diagrams-BoundingBox.html#boxTransform" class="link">Source</a> <a href="#v:boxTransform" class="selflink">#</a></p><div class="doc"><p>Create a transformation mapping points from one bounding box to the
   other. Returns <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Maybe.html#v:Nothing">Nothing</a></code> if either of the boxes are empty.</p></div></div><div class="top"><p class="src"><a id="v:boxFit" class="def">boxFit</a> :: (<a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-V.html#t:InSpace">InSpace</a> v n a, <a href="file:///usr/share/doc/libghc-diagrams-core-doc/html/Diagrams-Core-Transform.html#t:HasBasis">HasBasis</a> v, <a href="Diagrams-Envelope.html#t:Enveloped">Enveloped</a> a, <a href="Diagrams-Transform.html#t:Transformable">Transformable</a> a, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Monoid">Monoid</a> a) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; a -&gt; a <a href="src/Diagrams-BoundingBox.html#boxFit" class="link">Source</a> <a href="#v:boxFit" class="selflink">#</a></p><div class="doc"><p>Transforms an enveloped thing to fit within a <code>BoundingBox</code>.  If the
   bounding box is empty, then the result is also <code>mempty</code>.</p></div></div><div class="top"><p class="src"><a id="v:contains" class="def">contains</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Foldable.html#t:Foldable">Foldable</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-Points.html#t:Point">Point</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/Diagrams-BoundingBox.html#contains" class="link">Source</a> <a href="#v:contains" class="selflink">#</a></p><div class="doc"><p>Check whether a point is contained in a bounding box (including its edges).</p></div></div><div class="top"><p class="src"><a id="v:contains-39-" class="def">contains'</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Foldable.html#t:Foldable">Foldable</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-Points.html#t:Point">Point</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/Diagrams-BoundingBox.html#contains%27" class="link">Source</a> <a href="#v:contains-39-" class="selflink">#</a></p><div class="doc"><p>Check whether a point is <em>strictly</em> contained in a bounding box.</p></div></div><div class="top"><p class="src"><a id="v:boundingBoxQuery" class="def">boundingBoxQuery</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Foldable.html#t:Foldable">Foldable</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-Query.html#t:Query">Query</a> v n <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Monoid.html#t:Any">Any</a> <a href="src/Diagrams-BoundingBox.html#boundingBoxQuery" class="link">Source</a> <a href="#v:boundingBoxQuery" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:inside" class="def">inside</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Foldable.html#t:Foldable">Foldable</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/Diagrams-BoundingBox.html#inside" class="link">Source</a> <a href="#v:inside" class="selflink">#</a></p><div class="doc"><p>Test whether the first bounding box is contained inside
   the second.</p></div></div><div class="top"><p class="src"><a id="v:inside-39-" class="def">inside'</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Foldable.html#t:Foldable">Foldable</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/Diagrams-BoundingBox.html#inside%27" class="link">Source</a> <a href="#v:inside-39-" class="selflink">#</a></p><div class="doc"><p>Test whether the first bounding box is <em>strictly</em> contained
   inside the second.</p></div></div><div class="top"><p class="src"><a id="v:outside" class="def">outside</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Foldable.html#t:Foldable">Foldable</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/Diagrams-BoundingBox.html#outside" class="link">Source</a> <a href="#v:outside" class="selflink">#</a></p><div class="doc"><p>Test whether the first bounding box lies outside the second
   (although they may intersect in their boundaries).</p></div></div><div class="top"><p class="src"><a id="v:outside-39-" class="def">outside'</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Foldable.html#t:Foldable">Foldable</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/Diagrams-BoundingBox.html#outside%27" class="link">Source</a> <a href="#v:outside-39-" class="selflink">#</a></p><div class="doc"><p>Test whether the first bounding box lies <em>strictly</em> outside the second
   (they do not intersect at all).</p></div></div><h1 id="g:4">Operations on bounding boxes</h1><div class="top"><p class="src"><a id="v:union" class="def">union</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n <a href="src/Diagrams-BoundingBox.html#union" class="link">Source</a> <a href="#v:union" class="selflink">#</a></p><div class="doc"><p>Form the smallest bounding box containing the given two bound union.  This
   function is just an alias for <code>mappend</code>.</p></div></div><div class="top"><p class="src"><a id="v:intersection" class="def">intersection</a> :: (<a href="file:///usr/share/doc/libghc-linear-doc/html/Linear-Vector.html#t:Additive">Additive</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Foldable.html#t:Foldable">Foldable</a> v, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Ord.html#t:Ord">Ord</a> n) =&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n -&gt; <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v n <a href="src/Diagrams-BoundingBox.html#intersection" class="link">Source</a> <a href="#v:intersection" class="selflink">#</a></p><div class="doc"><p>Form the largest bounding box contained within this given two
   bounding boxes, or <code>Nothing</code> if the two bounding boxes do not
   overlap at all.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.2</p></div></body></html>