|
CARLA
|
#include <BoundingBox.h>
Public Member Functions | |
| BoundingBox ()=default | |
| BoundingBox (const FBoundingBox &Box) | |
| BoundingBox (const Location &in_location, const Vector3D &in_extent) | |
| BoundingBox (const Location &in_location, const Vector3D &in_extent, const Rotation &in_rotation) | |
| 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. | |
| std::array< Location, 8 > | GetLocalVertices () const |
| Returns the positions of the 8 vertices of this BoundingBox in local space. | |
| 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. | |
| 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. | |
| Location | location |
| Center of the BoundingBox in local space. | |
| Rotation | rotation |
| Rotation of the BoundingBox in local space. | |
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 |
Definition at line 137 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 extent, 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 location, carla::geom::Rotation::RotateVector(), and rotation.
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 extent, 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 world space.
| in_bbox_to_world_tr | The Transform from this BoundingBox space to world space. |
Definition at line 111 of file LibCarla/source/carla/geom/BoundingBox.h.
References GetLocalVertices().
Referenced by TEST().
|
inline |
Definition at line 127 of file LibCarla/source/carla/geom/BoundingBox.h.
|
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(), Contains(), carla::road::Map::GetJunctionsBoundingBoxes(), GetLocalVerticesNoRotation(), carla::client::TrafficSign::GetStopWaypoints(), carla::agents::navigation::GetTrafficLightTriggerLocation(), 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 Contains(), carla::rss::RssCheck::GetGreenTrafficLightsOnRoute(), GetLocalVertices(), GetLocalVerticesNoRotation(), carla::client::TrafficSign::GetStopWaypoints(), carla::agents::navigation::GetTrafficLightTriggerLocation(), 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 GetLocalVertices(), and operator==().