Implements BoundingRegion abstract class for non-axis-aligned-box-shaped bounding regions.
#include <include/maliput/math/bounding_box.h>
◆ BoundingBox()
Constructs a BoundingBox object.
The box is defined by a position, dimensions(length, width and height) and orientation.
- Parameters
-
position | Position of the bounding box in the Inertial-frame. The position matches with the centroid of the box. |
box_size | The size of the bounding box on XYZ (length/width,height) |
orientation | Orientation of the box in the Inertial-frame. |
tolerance | Used to compute IsBoxContained() and IsBoxIntersected() against other BoundingBoxes. |
- Exceptions
-
◆ ~BoundingBox()
◆ box_size()
- Returns
- The size of the box in length, width and height.
◆ get_orientation()
- Returns
- The orientation of the box in the Inertial-frame.
◆ get_vertices()
std::vector< Vector3 > get_vertices |
( |
| ) |
const |
- Returns
- The vertices of the bounding box in the Inertial-frame.
◆ IsBoxContained()
- Returns
- True when this region contains
other
.
◆ IsBoxIntersected()
bool IsBoxIntersected |
( |
const BoundingBox & |
other | ) |
const |
- Returns
- True when this region intersects
other
.
The documentation for this class was generated from the following files: