Axis-aligned bounding box defined by minimum and maximum corners.
More...
#include <a3d/mesh/AABB.h>
Axis-aligned bounding box defined by minimum and maximum corners.
Definition at line 17 of file AABB.h.
◆ Center()
Returns the midpoint between a.min and a.max.
◆ Expand()
Expands a to contain p, initializing invalid bounds to p.
◆ Invalid()
| static AABB a3d::AABB::Invalid |
( |
| ) |
|
|
static |
Returns an invalid box suitable as an empty accumulation seed.
◆ operator|=() [1/2]
| AABB & a3d::AABB::operator|= |
( |
const AABB & |
b | ) |
|
Expands this box to include b.
◆ operator|=() [2/2]
Expands this box to include p.
◆ Union()
| static AABB a3d::AABB::Union |
( |
const AABB & |
a, |
|
|
const AABB & |
b |
|
) |
| |
|
static |
Returns the union of a and b, treating invalid bounds as empty.
◆ valid()
| bool a3d::AABB::valid |
( |
| ) |
const |
Returns whether min is no greater than max on every axis.
◆ Zero()
| static AABB a3d::AABB::Zero |
( |
| ) |
|
|
static |
Returns a zero-size box at the origin.
◆ max
Maximum corner.
Definition at line 50 of file AABB.h.
◆ min
Minimum corner.
Definition at line 49 of file AABB.h.
The documentation for this struct was generated from the following file: