|
Geogram Version 1.10.1
A programming library of geometric algorithms
|
Axis-aligned bounding box. More...
#include <geogram/basic/geometry.h>
Public Member Functions | |
| Box2d () | |
| Constructs an uninitialized Box2d. | |
| Box2d (double x1, double y1, double x2, double y2) | |
| Constructs a box from lower and upper bounds. | |
| Box2d (const vec2 &lo, const vec2 &hi) | |
| Constructs a box from lower and upper bounds. | |
| vec2 | lo () const |
| Gets the lower bounds. | |
| vec2 | hi () const |
| Gets the higher bounds. | |
| bool | contains (const vec2 &b) const |
| Tests whether a box contains a point. | |
| void | enlarge (double d) |
| Enlarges the box. | |
Public Attributes | |
| double | xy_min [2] |
| double | xy_max [2] |
Axis-aligned bounding box.
Definition at line 817 of file geometry.h.
|
inline |
Constructs an uninitialized Box2d.
Definition at line 825 of file geometry.h.
|
inline |
Constructs a box from lower and upper bounds.
| [in] | x1,y1 | the lower bounds |
| [in] | x2,y2 | the upper bounds |
Definition at line 833 of file geometry.h.
Constructs a box from lower and upper bounds.
| [in] | lo | the lower bound as a vec2 |
| [in] | hi | the upper bound as a vec2 |
Definition at line 845 of file geometry.h.
Tests whether a box contains a point.
| [in] | b | the point |
b, false otherwise Definition at line 873 of file geometry.h.
|
inline |
Enlarges the box.
| [in] | d | the amount that should be subtracted from the lower bounds and added to the upper bounds |
Definition at line 890 of file geometry.h.
|
inline |
Gets the higher bounds.
Definition at line 864 of file geometry.h.
|
inline |
| double GEO::Box2d::xy_max[2] |
Definition at line 820 of file geometry.h.
| double GEO::Box2d::xy_min[2] |
Definition at line 819 of file geometry.h.