17 #ifdef LIBCARLA_INCLUDED_FROM_UE4 21 #endif // LIBCARLA_INCLUDED_FROM_UE4 64 auto point_in_bbox_space = in_world_point;
68 return point_in_bbox_space.
x >= -extent.
x && point_in_bbox_space.x <= extent.
x &&
69 point_in_bbox_space.y >= -extent.
y && point_in_bbox_space.y <= extent.
y &&
70 point_in_bbox_space.z >= -extent.
z && point_in_bbox_space.z <= extent.
z;
100 location +
Location( extent.
x,-extent.
y,-extent.
z),
101 location +
Location( extent.
x,-extent.
y, extent.
z),
102 location +
Location( extent.
x, extent.
y,-extent.
z),
113 std::for_each(world_vertices.begin(), world_vertices.end(), [&in_bbox_to_world_tr](
auto &world_vertex) {
116 return world_vertices;
128 return !(*
this == rhs);
135 #ifdef LIBCARLA_INCLUDED_FROM_UE4 142 #endif // LIBCARLA_INCLUDED_FROM_UE4 std::array< Location, 8 > GetLocalVertices() const
Returns the positions of the 8 vertices of this BoundingBox in local space.
Location location
Center of the BoundingBox in local space.
BoundingBox(const Location &in_location, const Vector3D &in_extent, const Rotation &in_rotation)
Vector3D extent
Half the size of the BoundingBox in local space.
This file contains definitions of common data structures used in traffic manager. ...
BoundingBox(const Vector3D &in_extent)
bg::model::box< Point3D > Box
bool operator==(const BoundingBox &rhs) const
std::array< Location, 8 > GetLocalVerticesNoRotation() const
Returns the positions of the 8 vertices of this BoundingBox in local space without its own rotation...
std::array< Location, 8 > GetWorldVertices(const Transform &in_bbox_to_world_tr) const
Returns the positions of the 8 vertices of this BoundingBox in world space.
FRotator Rotation
Rotation of the bounding box.
Rotation rotation
Rotation of the BoundingBox in local space.
BoundingBox(const Location &in_location, const Vector3D &in_extent)
bool operator!=(const BoundingBox &rhs) const
FVector Origin
Origin of the bounding box relative to its owner.
FVector Extent
Radii extent of the bounding box.
void RotateVector(Vector3D &in_point) const
bool Contains(const Location &in_world_point, const Transform &in_bbox_to_world_transform) const
Whether this BoundingBox contains in_world_point in world space.
MSGPACK_DEFINE_ARRAY(location, extent, rotation)