maliput
|
Implements BoundingRegion abstract class for axis-aligned-box-shaped bounding regions.
#include <include/maliput/math/axis_aligned_box.h>
Public Member Functions | |
AxisAlignedBox (const Vector3 &min_corner, const Vector3 &max_corner) | |
AxisAlignedBox (const Vector3 &min_corner, const Vector3 &max_corner, double tolerance) | |
~AxisAlignedBox ()=default | |
const Vector3 & | min_corner () const |
Get the minimum corner of the bounding box. More... | |
const Vector3 & | max_corner () const |
Get the maximum corner of the bounding box. More... | |
std::vector< Vector3 > | get_vertices () const |
bool | IsBoxContained (const AxisAlignedBox &other) const |
bool | IsBoxIntersected (const AxisAlignedBox &other) const |
std::optional< AxisAlignedBox > | GetIntersection (const AxisAlignedBox &other) const |
Computes the intersection of this region with other . More... | |
![]() | |
virtual | ~BoundingRegion ()=default |
const Vector3 & | position () const |
Obtains the bounding region's position in the Inertial-frame. More... | |
bool | Contains (const Vector3 &position) const |
Determines whether a position in the Inertial-frame is contained in this bounding region. More... | |
OverlappingType | Overlaps (const BoundingRegion< Vector3 > &other) const |
Determines the overlapping type with other BoundingRegion instance. More... | |
Additional Inherited Members | |
![]() | |
BoundingRegion ()=default | |
AxisAlignedBox | ( | const Vector3 & | min_corner, |
const Vector3 & | max_corner | ||
) |
AxisAlignedBox | ( | const Vector3 & | min_corner, |
const Vector3 & | max_corner, | ||
double | tolerance | ||
) |
|
default |
std::vector< Vector3 > get_vertices | ( | ) | const |
std::optional< AxisAlignedBox > GetIntersection | ( | const AxisAlignedBox & | other | ) | const |
Computes the intersection of this region with other
.
other | The other region to intersect with. |
other
. bool IsBoxContained | ( | const AxisAlignedBox & | other | ) | const |
other
. bool IsBoxIntersected | ( | const AxisAlignedBox & | other | ) | const |
other
. const Vector3& max_corner | ( | ) | const |
Get the maximum corner of the bounding box.
const Vector3& min_corner | ( | ) | const |
Get the minimum corner of the bounding box.