Apollo 10.0
自动驾驶开放平台
|
The class of KD-tree node of axis-aligned bounding box. 更多...
#include <aaboxkdtree2d.h>
Public 类型 | |
using | ObjectPtr = const ObjectType * |
Public 成员函数 | |
AABoxKDTree2dNode (const std::vector< ObjectPtr > &objects, const AABoxKDTreeParams ¶ms, int depth) | |
Constructor which takes a vector of objects, parameters and depth of the node. | |
ObjectPtr | GetNearestObject (const Vec2d &point) const |
Get the nearest object to a target point by the KD-tree rooted at this node. | |
std::vector< ObjectPtr > | GetObjects (const Vec2d &point, const double distance) const |
Get objects within a distance to a point by the KD-tree rooted at this node. | |
AABox2d | GetBoundingBox () const |
Get the axis-aligned bounding box of the objects. | |
The class of KD-tree node of axis-aligned bounding box.
在文件 aaboxkdtree2d.h 第 60 行定义.
using apollo::common::math::AABoxKDTree2dNode< ObjectType >::ObjectPtr = const ObjectType * |
在文件 aaboxkdtree2d.h 第 62 行定义.
|
inline |
Constructor which takes a vector of objects, parameters and depth of the node.
objects | Objects to build the KD-tree node. |
params | Parameters to build the KD-tree. |
depth | Depth of the KD-tree node. |
在文件 aaboxkdtree2d.h 第 70 行定义.
|
inline |
Get the axis-aligned bounding box of the objects.
在文件 aaboxkdtree2d.h 第 128 行定义.
|
inline |
Get the nearest object to a target point by the KD-tree rooted at this node.
point | The target point. Search it's nearest object. |
在文件 aaboxkdtree2d.h 第 103 行定义.
|
inline |
Get objects within a distance to a point by the KD-tree rooted at this node.
point | The center point of the range to search objects. |
distance | The radius of the range to search objects. |
在文件 aaboxkdtree2d.h 第 117 行定义.