/usr/share/doc/libghc-diagrams-lib-doc/html/Diagrams-BoundingBox.html is in libghc-diagrams-lib-doc 0.5-2.
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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | <!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 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-0.5: Embedded domain-specific language for declarative graphics</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Maintainer</th><td>diagrams-discuss@googlegroups.com</td></tr><tr><th>Safe Haskell</th><td>Safe-Infered</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>Definitions and functions for working with bounding boxes.
</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</li><li class="src short"><a href="#v:fromCorners">fromCorners</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Points.html#t:Point">Point</a> v -> <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Points.html#t:Point">Point</a> v -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v</li><li class="src short"><a href="#v:fromPoint">fromPoint</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Points.html#t:Point">Point</a> v -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v</li><li class="src short"><a href="#v:fromPoints">fromPoints</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => [<a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Points.html#t:Point">Point</a> v] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v)</li><li class="src short"><a href="#v:boundingBox">boundingBox</a> :: <span class="keyword">forall</span> a. (<a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Envelope.html#t:Enveloped">Enveloped</a> a, <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> (<a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> a), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> (<a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> a))) => a -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> (<a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> a)</li><li class="src short"><a href="#v:getCorners">getCorners</a> :: <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> (<a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Points.html#t:Point">Point</a> v, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Points.html#t:Point">Point</a> v)</li><li class="src short"><a href="#v:getAllCorners">getAllCorners</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v)) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> [<a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Points.html#t:Point">Point</a> v]</li><li class="src short"><a href="#v:boxExtents">boxExtents</a> :: <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> v => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> v</li><li class="src short"><a href="#v:boxTransform">boxTransform</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> v, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Transform.html#t:HasLinearMap">HasLinearMap</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Fractional">Fractional</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v)) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Transform.html#t:Transformation">Transformation</a> v</li><li class="src short"><a href="#v:boxFit">boxFit</a> :: (<a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Envelope.html#t:Enveloped">Enveloped</a> a, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Transform.html#t:Transformable">Transformable</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> (<a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> a))) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> (<a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> a) -> a -> a</li><li class="src short"><a href="#v:contains">contains</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Points.html#t:Point">Point</a> v -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:contains-39-">contains'</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Points.html#t:Point">Point</a> v -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:inside">inside</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:inside-39-">inside'</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:outside">outside</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:outside-39-">outside'</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:union">union</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v</li><li class="src short"><a href="#v:intersection">intersection</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v)</li><li class="src short"><a href="#v:unions">unions</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => [<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v)</li><li class="src short"><a href="#v:intersections">intersections</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => [<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v)</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 name="t:BoundingBox" class="def">BoundingBox</a> v <a href="src/Diagrams-BoundingBox.html#BoundingBox" class="link">Source</a></p><div class="doc"><p>A bounding box is an axis-aligned region determined
by two points indicating its "lower" and "upper" corners.
</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"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Monad.html#t:Functor">Functor</a> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Typeable-Internal.html#t:Typeable1">Typeable1</a> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> v => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Data.html#t:Data">Data</a> v => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Data.html#t:Data">Data</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> v => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> v => <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v)</td><td class="doc empty"> </td></tr><tr><td class="src">(<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:InnerSpace">InnerSpace</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Floating">Floating</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v)) => <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Envelope.html#t:Enveloped">Enveloped</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v)</td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:VectorSpace">VectorSpace</a> v => <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-HasOrigin.html#t:HasOrigin">HasOrigin</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v)</td><td class="doc empty"> </td></tr></table></div></div></div><h1 id="g:2">Constructing bounding boxes
</h1><div class="top"><p class="src"><a name="v:fromCorners" class="def">fromCorners</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Points.html#t:Point">Point</a> v -> <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Points.html#t:Point">Point</a> v -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v<a href="src/Diagrams-BoundingBox.html#fromCorners" class="link">Source</a></p><div class="doc"><p>Create a bounding box from any two opposite corners.
</p></div></div><div class="top"><p class="src"><a name="v:fromPoint" class="def">fromPoint</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Points.html#t:Point">Point</a> v -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v<a href="src/Diagrams-BoundingBox.html#fromPoint" class="link">Source</a></p><div class="doc"><p>Create a degenerate bounding "box" containing only a single point.
</p></div></div><div class="top"><p class="src"><a name="v:fromPoints" class="def">fromPoints</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => [<a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Points.html#t:Point">Point</a> v] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v)<a href="src/Diagrams-BoundingBox.html#fromPoints" class="link">Source</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 name="v:boundingBox" class="def">boundingBox</a> :: <span class="keyword">forall</span> a. (<a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Envelope.html#t:Enveloped">Enveloped</a> a, <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> (<a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> a), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> (<a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> a))) => a -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> (<a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> a)<a href="src/Diagrams-BoundingBox.html#boundingBox" class="link">Source</a></p><div class="doc"><p>Create a bounding box for any boundable 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 name="v:getCorners" class="def">getCorners</a> :: <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> (<a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Points.html#t:Point">Point</a> v, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Points.html#t:Point">Point</a> v)<a href="src/Diagrams-BoundingBox.html#getCorners" class="link">Source</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 name="v:getAllCorners" class="def">getAllCorners</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v)) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> [<a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Points.html#t:Point">Point</a> v]<a href="src/Diagrams-BoundingBox.html#getAllCorners" class="link">Source</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 name="v:boxExtents" class="def">boxExtents</a> :: <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> v => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> v<a href="src/Diagrams-BoundingBox.html#boxExtents" class="link">Source</a></p><div class="doc"><p>Get the size of the bounding box - the vector from the lesser to the greater
point.
</p></div></div><div class="top"><p class="src"><a name="v:boxTransform" class="def">boxTransform</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> v, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Transform.html#t:HasLinearMap">HasLinearMap</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Fractional">Fractional</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v)) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Transform.html#t:Transformation">Transformation</a> v<a href="src/Diagrams-BoundingBox.html#boxTransform" class="link">Source</a></p><div class="doc"><p>Create a transformation mapping points from one bounding box to the other.
</p></div></div><div class="top"><p class="src"><a name="v:boxFit" class="def">boxFit</a> :: (<a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Envelope.html#t:Enveloped">Enveloped</a> a, <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Transform.html#t:Transformable">Transformable</a> a, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> (<a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> a))) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> (<a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-V.html#t:V">V</a> a) -> a -> a<a href="src/Diagrams-BoundingBox.html#boxFit" class="link">Source</a></p><div class="doc"><p>Transforms a boundable thing to fit within a <code>BoundingBox</code>.
</p></div></div><div class="top"><p class="src"><a name="v:contains" class="def">contains</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Points.html#t:Point">Point</a> v -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Diagrams-BoundingBox.html#contains" class="link">Source</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 name="v:contains-39-" class="def">contains'</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="/usr/share/doc/libghc-diagrams-core-doc/html/Graphics-Rendering-Diagrams-Points.html#t:Point">Point</a> v -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Diagrams-BoundingBox.html#contains%27" class="link">Source</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 name="v:inside" class="def">inside</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Diagrams-BoundingBox.html#inside" class="link">Source</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 name="v:inside-39-" class="def">inside'</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Diagrams-BoundingBox.html#inside%27" class="link">Source</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 name="v:outside" class="def">outside</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Diagrams-BoundingBox.html#outside" class="link">Source</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 name="v:outside-39-" class="def">outside'</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Diagrams-BoundingBox.html#outside%27" class="link">Source</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 name="v:union" class="def">union</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v<a href="src/Diagrams-BoundingBox.html#union" class="link">Source</a></p><div class="doc"><p>Form the smallest bounding box containing the given two bounding boxes.
</p></div></div><div class="top"><p class="src"><a name="v:intersection" class="def">intersection</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v)<a href="src/Diagrams-BoundingBox.html#intersection" class="link">Source</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 class="top"><p class="src"><a name="v:unions" class="def">unions</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => [<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v)<a href="src/Diagrams-BoundingBox.html#unions" class="link">Source</a></p><div class="doc"><p>Compute the smallest bounding box containing all the given
bounding boxes (or <code>Nothing</code> if the list is empty).
</p></div></div><div class="top"><p class="src"><a name="v:intersections" class="def">intersections</a> :: (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:HasBasis">HasBasis</a> v, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-Basis.html#t:Basis">Basis</a> v), <a href="/usr/share/doc/libghc-vector-space-doc/html/Data-AdditiveGroup.html#t:AdditiveGroup">AdditiveGroup</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v), <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Ord.html#t:Ord">Ord</a> (<a href="/usr/share/doc/libghc-vector-space-doc/html/Data-VectorSpace.html#t:Scalar">Scalar</a> v)) => [<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="Diagrams-BoundingBox.html#t:BoundingBox">BoundingBox</a> v)<a href="src/Diagrams-BoundingBox.html#intersections" class="link">Source</a></p><div class="doc"><p>Compute the largest bounding box contained in all the given
bounding boxes (or <code>Nothing</code> is the list is empty).
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.10.0</p></div></body></html>
|