|
|
|
|
|
| Description |
| Bounding boxes of various numbers of dimensions, plus a class for generically handling them.
|
|
| Synopsis |
|
|
|
|
| Class
|
|
| class BoundingBox b where | Source |
|
| Class for dealing with bounding boxes.
| | | Associated Types | | | The type of vectors that this bounding box deals with.
|
|
| | | Methods | | | Given two corner points, construct a bounding box containing them both. (You can use any two points, given in any order, provided that they are from opposite corners.)
| | | | Return a point containing the minimum values for all coordinates.
| | | | Return a point containing the maximum values for all coordinates.
| | | | Test whether a given point lies within a given bounding box.
| | | | Take the union of two bounding boxes. The result is a new bounding box that contains every point that the original pair of boxes contained, and probably some extra space as well.
| | | | Take the intersection of two bounding boxes. If the boxes do not overlap, return Nothing. Otherwise return a bounding box containing only the points common to both original bounding boxes.
|
| | Instances | |
|
|
| Types
|
|
| 1 dimension
|
|
|
| A Range represents a continuous interval between two Scalar endpoints.
| Instances | |
|
|
|
| The BBox1 type is basically a Range, but all the operations over it work with Vector1 (which is really Scalar). While it's called a bounding box, a 1-dimensional box is in truth a simple line interval, just like Range.
| Instances | |
|
|
| 2 dimensions
|
|
|
| A BBox2 is a 2D bounding box (aligned to the coordinate axies).
| Instances | |
|
|
| 3 dimensions
|
|
|
| A BBox3 is a 3D bounding box (aligned to the coordinate axies).
| Instances | |
|
|
| 4 dimensions
|
|
|
| A BBox4 is a 4D bounding box (aligned to the coordinate axies).
| Instances | |
|
|
| Produced by Haddock version 2.6.1 |