17 #ifdef LIBCARLA_INCLUDED_FROM_UE4 19 #endif // LIBCARLA_INCLUDED_FROM_UE4 59 auto point_in_bbox_space = in_world_point;
63 return point_in_bbox_space.
x >= -extent.
x && point_in_bbox_space.x <= extent.
x &&
64 point_in_bbox_space.y >= -extent.
y && point_in_bbox_space.y <= extent.
y &&
65 point_in_bbox_space.z >= -extent.
z && point_in_bbox_space.z <= extent.
z;
91 std::for_each(world_vertices.begin(), world_vertices.end(), [&in_bbox_to_world_tr](
auto &world_vertex) {
94 return world_vertices;
106 return !(*
this == rhs);
113 #ifdef LIBCARLA_INCLUDED_FROM_UE4 120 #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 > 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)