CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
carla::geom::BoundingBox类 参考

#include <BoundingBox.h>

+ carla::geom::BoundingBox 的协作图:

Public 成员函数

 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 属性

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
 

详细描述

在文件 LibCarla/source/carla/geom/BoundingBox.h26 行定义.

构造及析构函数说明

◆ BoundingBox() [1/5]

carla::geom::BoundingBox::BoundingBox ( )
default

◆ BoundingBox() [2/5]

carla::geom::BoundingBox::BoundingBox ( const Location & in_location,
const Vector3D & in_extent,
const Rotation & in_rotation )
inlineexplicit

在文件 LibCarla/source/carla/geom/BoundingBox.h35 行定义.

◆ BoundingBox() [3/5]

carla::geom::BoundingBox::BoundingBox ( const Location & in_location,
const Vector3D & in_extent )
inlineexplicit

在文件 LibCarla/source/carla/geom/BoundingBox.h40 行定义.

◆ BoundingBox() [4/5]

carla::geom::BoundingBox::BoundingBox ( const Vector3D & in_extent)
inlineexplicit

在文件 LibCarla/source/carla/geom/BoundingBox.h45 行定义.

◆ BoundingBox() [5/5]

carla::geom::BoundingBox::BoundingBox ( const FBoundingBox & Box)
inline

成员函数说明

◆ Contains()

bool carla::geom::BoundingBox::Contains ( const Location & in_world_point,
const Transform & in_bbox_to_world_transform ) const
inline

Whether this BoundingBox contains in_world_point in world space.

参数
in_world_pointthe point in world space that you want to query whether it is inside or not.
in_bbox_to_world_transformthe transformation from BoundingBox space to World space.

在文件 LibCarla/source/carla/geom/BoundingBox.h63 行定义.

引用了 extent, carla::geom::Transform::InverseTransformPoint(), location, carla::geom::Vector3D::x, carla::geom::Vector3D::y , 以及 carla::geom::Vector3D::z.

+ 函数调用图:

◆ GetLocalVertices()

std::array< Location, 8 > carla::geom::BoundingBox::GetLocalVertices ( ) const
inline

Returns the positions of the 8 vertices of this BoundingBox in local space.

在文件 LibCarla/source/carla/geom/BoundingBox.h76 行定义.

引用了 location, carla::geom::Rotation::RotateVector() , 以及 rotation.

被这些函数引用 GetWorldVertices() , 以及 TEST().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ GetLocalVerticesNoRotation()

std::array< Location, 8 > carla::geom::BoundingBox::GetLocalVerticesNoRotation ( ) const
inline

Returns the positions of the 8 vertices of this BoundingBox in local space without its own rotation.

在文件 LibCarla/source/carla/geom/BoundingBox.h93 行定义.

引用了 extent, location, carla::geom::Vector3D::x, carla::geom::Vector3D::y , 以及 carla::geom::Vector3D::z.

◆ GetWorldVertices()

std::array< Location, 8 > carla::geom::BoundingBox::GetWorldVertices ( const Transform & in_bbox_to_world_tr) const
inline

Returns the positions of the 8 vertices of this BoundingBox in world space.

参数
in_bbox_to_world_transformThe Transform from this BoundingBox space to world space.

在文件 LibCarla/source/carla/geom/BoundingBox.h111 行定义.

引用了 GetLocalVertices().

被这些函数引用 TEST().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ MSGPACK_DEFINE_ARRAY()

carla::geom::BoundingBox::MSGPACK_DEFINE_ARRAY ( location ,
extent ,
rotation  )

◆ operator!=()

bool carla::geom::BoundingBox::operator!= ( const BoundingBox & rhs) const
inline

◆ operator==()

bool carla::geom::BoundingBox::operator== ( const BoundingBox & rhs) const
inline

在文件 LibCarla/source/carla/geom/BoundingBox.h123 行定义.

引用了 extent, location , 以及 rotation.

类成员变量说明

◆ extent

Vector3D carla::geom::BoundingBox::extent

◆ location

Location carla::geom::BoundingBox::location

◆ rotation

Rotation carla::geom::BoundingBox::rotation

Rotation of the BoundingBox in local space

在文件 LibCarla/source/carla/geom/BoundingBox.h52 行定义.

被这些函数引用 GetLocalVertices(), operator==() , 以及 carla::road::Map::SDFToMesh().


该类的文档由以下文件生成: