Apollo 10.0
自动驾驶开放平台
|
The class of KD-tree of Aligned Axis Bounding Box(AABox). 更多...
#include <aaboxkdtree2d.h>
Public 类型 | |
using | ObjectPtr = const ObjectType * |
Public 成员函数 | |
AABoxKDTree2d (const std::vector< ObjectType > &objects, const AABoxKDTreeParams ¶ms) | |
Constructor which takes a vector of objects and parameters. | |
ObjectPtr | GetNearestObject (const Vec2d &point) const |
Get the nearest object to a target point. | |
std::vector< ObjectPtr > | GetObjects (const Vec2d &point, const double distance) const |
Get objects within a distance to a point. | |
AABox2d | GetBoundingBox () const |
Get the axis-aligned bounding box of the objects. | |
The class of KD-tree of Aligned Axis Bounding Box(AABox).
在文件 aaboxkdtree2d.h 第 415 行定义.
using apollo::common::math::AABoxKDTree2d< ObjectType >::ObjectPtr = const ObjectType * |
在文件 aaboxkdtree2d.h 第 417 行定义.
|
inline |
Constructor which takes a vector of objects and parameters.
params | Parameters to build the KD-tree. |
在文件 aaboxkdtree2d.h 第 423 行定义.
|
inline |
Get the axis-aligned bounding box of the objects.
在文件 aaboxkdtree2d.h 第 461 行定义.
|
inline |
Get the nearest object to a target point.
point | The target point. Search it's nearest object. |
在文件 aaboxkdtree2d.h 第 439 行定义.
|
inline |
Get objects within a distance to a point.
point | The center point of the range to search objects. |
distance | The radius of the range to search objects. |
在文件 aaboxkdtree2d.h 第 449 行定义.