#include <BoundingBox.h>
Public Member Functions | |
BoundingBox ()=default | |
BoundingBox (const Location &in_location, const Vector3D &in_extent, const Rotation &in_rotation) | |
BoundingBox (const Location &in_location, const Vector3D &in_extent) | |
BoundingBox (const Vector3D &in_extent) | |
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. More... | |
std::array< Location, 8 > | GetLocalVertices () const |
Returns the positions of the 8 vertices of this BoundingBox in local space. More... | |
std::array< Location, 8 > | GetLocalVerticesNoRotation () const |
Returns the positions of the 8 vertices of this BoundingBox in local space without its own rotation. More... | |
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. More... | |
MSGPACK_DEFINE_ARRAY (location, extent, rotation) | |
bool | operator!= (const BoundingBox &rhs) const |
bool | operator== (const BoundingBox &rhs) const |
Public Attributes | |
Vector3D | extent |
Half the size of the BoundingBox in local space. More... | |
Location | location |
Center of the BoundingBox in local space. More... | |
Rotation | rotation |
Rotation of the BoundingBox in local space. More... | |
Definition at line 26 of file LibCarla/source/carla/geom/BoundingBox.h.
|
default |
|
inlineexplicit |
Definition at line 35 of file LibCarla/source/carla/geom/BoundingBox.h.
|
inlineexplicit |
Definition at line 40 of file LibCarla/source/carla/geom/BoundingBox.h.
|
inlineexplicit |
Definition at line 45 of file LibCarla/source/carla/geom/BoundingBox.h.
|
inline |
Whether this BoundingBox contains in_world_point in world space.
in_world_point | the point in world space that you want to query whether it is inside or not. |
in_bbox_to_world_transform | the transformation from BoundingBox space to World space. |
Definition at line 63 of file LibCarla/source/carla/geom/BoundingBox.h.
References carla::geom::Transform::InverseTransformPoint(), location, carla::geom::Vector3D::x, carla::geom::Vector3D::y, and carla::geom::Vector3D::z.
|
inline |
Returns the positions of the 8 vertices of this BoundingBox in local space.
Definition at line 76 of file LibCarla/source/carla/geom/BoundingBox.h.
References carla::geom::Rotation::RotateVector().
Referenced by GetWorldVertices(), and TEST().
|
inline |
Returns the positions of the 8 vertices of this BoundingBox in local space without its own rotation.
Definition at line 93 of file LibCarla/source/carla/geom/BoundingBox.h.
References carla::geom::Vector3D::x, carla::geom::Vector3D::y, and carla::geom::Vector3D::z.
|
inline |
Returns the positions of the 8 vertices of this BoundingBox in world space.
in_bbox_to_world_transform | The Transform from this BoundingBox space to world space. |
Definition at line 111 of file LibCarla/source/carla/geom/BoundingBox.h.
References GetLocalVertices(), and carla::geom::Transform::TransformPoint().
Referenced by TEST().
|
inline |
Definition at line 127 of file LibCarla/source/carla/geom/BoundingBox.h.
References BoundingBox(), FBoundingBox::Extent, extent, location, MSGPACK_DEFINE_ARRAY(), FBoundingBox::Origin, FBoundingBox::Rotation, and rotation.
|
inline |
Definition at line 123 of file LibCarla/source/carla/geom/BoundingBox.h.
Vector3D carla::geom::BoundingBox::extent |
Half the size of the BoundingBox in local space.
Definition at line 51 of file LibCarla/source/carla/geom/BoundingBox.h.
Referenced by carla::nav::Navigation::AddOrUpdateVehicle(), carla::road::Map::ComputeJunctionConflicts(), carla::road::Map::GetJunctionsBoundingBoxes(), carla::client::TrafficLight::GetStopWaypoints(), operator!=(), FShapeVisitor::operator()(), operator==(), and carla::road::Map::SDFToMesh().
Location carla::geom::BoundingBox::location |
Center of the BoundingBox in local space.
Definition at line 50 of file LibCarla/source/carla/geom/BoundingBox.h.
Referenced by carla::road::Map::ComputeJunctionConflicts(), Contains(), carla::rss::RssCheck::GetGreenTrafficLightsOnRoute(), carla::client::TrafficLight::GetStopWaypoints(), operator!=(), FShapeVisitor::operator()(), operator==(), and carla::road::Map::SDFToMesh().
Rotation carla::geom::BoundingBox::rotation |
Rotation of the BoundingBox in local space.
Definition at line 52 of file LibCarla/source/carla/geom/BoundingBox.h.
Referenced by operator!=(), operator==(), and carla::road::Map::SDFToMesh().