|
Graphite Version 3
An experimental 3D geometry processing program
|
Axis-aligned bounding box. More...
#include <geogram/basic/geometry.h>
Public Member Functions | |
| Box () | |
| Constructs an uninitialized box. | |
| Box (double x1, double y1, double z1, double x2, double y2, double z2) | |
| Constructs a box from lower and upper bounds. | |
| Box (const vec3 &lo, const vec3 &hi) | |
| Constructs a box from lower and upper bounds. | |
| vec3 | lo () const |
| Gets the lower bounds. | |
| vec3 | hi () const |
| Gets the higher bounds. | |
| bool | contains (const vec3 &b) const |
| Tests whether a box contains a point. | |
| void | enlarge (double d) |
| Enlarges the box. | |
Public Attributes | |
| double | xyz_min [3] |
| double | xyz_max [3] |
Axis-aligned bounding box.
Definition at line 689 of file geometry.h.
|
inline |
Constructs an uninitialized box.
Definition at line 697 of file geometry.h.
|
inline |
Constructs a box from lower and upper bounds.
| [in] | x1,y1,z1 | the lower bounds |
| [in] | x2,y2,z2 | the upper bounds |
Definition at line 705 of file geometry.h.
Constructs a box from lower and upper bounds.
| [in] | lo | the lower bound as a vec3 |
| [in] | hi | the upper bound as a vec3 |
Definition at line 719 of file geometry.h.
Tests whether a box contains a point.
| [in] | b | the point |
b, false otherwise Definition at line 749 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 766 of file geometry.h.
|
inline |
Gets the higher bounds.
Definition at line 740 of file geometry.h.
|
inline |
| double GEO::Box::xyz_max[3] |
Definition at line 692 of file geometry.h.
| double GEO::Box::xyz_min[3] |
Definition at line 691 of file geometry.h.