|
Adaptagrams
|
A bounding box, given by the extreme coordinates. More...
#include <graphs.h>

Public Member Functions | |
| BoundingBox (double x, double X, double y, double Y) | |
| Standard constructor. More... | |
| BoundingBox (void) | |
| Default constructor. More... | |
| BoundingBox & | operator+= (const BoundingBox &rhs) |
| Adding two bounding boxes returns the bounding box of their union. | |
| std::string | repr (void) const |
| Write a simple representation of the bounding box. | |
| double | w (void) const |
| Get the width of the box. | |
| double | h (void) const |
| Get the height of the box. | |
| interval | getInterval (vpsc::Dim dim) |
| Get the interval in a given dimension. More... | |
| Avoid::Point | centre (void) const |
| Get the centre of the box. | |
| LineSegment_SP | buildSideSegment (CardinalDir side) const |
| Build a LineSegment representing a side of the box. | |
| double | perimeter (void) const |
| Compute the perimeter of the box. | |
A bounding box, given by the extreme coordinates.
|
inline |
Standard constructor.
| [in] | x | Lower bound on x-coordinates of the box. |
| [in] | X | Upper bound on x-coordinates of the box. |
| [in] | y | Lower bound on y-coordinates of the box. |
| [in] | Y | Upper bound on y-coordinates of the box. |
|
inline |
Default constructor.
Constructs a bounding box that serves as "zero" when adding boxes together. Can be thought of as the box whose interior consists solely of the point at infinity on the Riemann Sphere.
|
inline |
Get the interval in a given dimension.
| [in] | dim | The desired interval's variable dimension; thus, X if you want the box's horizontal interval, Y if you want its vertical interval. |
References vpsc::XDIM.
Referenced by dialect::Side::closedInterval().

1.8.14