#include <Geometry.h>
类 carla::road::element::GeometryLine 继承关系图:
carla::road::element::GeometryLine 的协作图:Public 成员函数 | |
| std::pair< float, float > | DistanceTo (const geom::Location &p) const override |
| 返回一个包含以下内容的对(pair): 更多... | |
| GeometryLine (double start_offset, double length, double heading, const geom::Location &start_pos) | |
| DirectedPoint | PosFromDist (double dist) const override |
Public 成员函数 继承自 carla::road::element::Geometry | |
| virtual std::pair< float, float > | DistanceTo (const geom::Location &p) const =0 |
| double | GetHeading () const |
| double | GetLength () const |
| double | GetStartOffset () const |
| const geom::Location & | GetStartPosition () |
| GeometryType | GetType () const |
| virtual DirectedPoint | PosFromDist (double dist) const =0 |
| virtual | ~Geometry ()=default |
额外继承的成员函数 | |
Protected 成员函数 继承自 carla::road::element::Geometry | |
| Geometry (GeometryType type, double start_offset, double length, double heading, const geom::Location &start_pos) | |
Protected 属性 继承自 carla::road::element::Geometry | |
| double | _heading |
| double | _length |
| geom::Location | _start_position |
| double | _start_position_offset |
| GeometryType | _type |
在文件 Geometry.h 第 129 行定义.
|
inline |
在文件 Geometry.h 第 132 行定义.
|
inlineoverridevirtual |
返回一个包含以下内容的对(pair):
| p | 用于计算距离的点 |
实现了 carla::road::element::Geometry.
在文件 Geometry.h 第 147 行定义.
引用了 carla::road::element::Geometry::_length, carla::road::element::Geometry::_start_position, carla::geom::Math::DistanceSegmentToPoint() , 以及 PosFromDist().
函数调用图:
|
overridevirtual |
实现了 carla::road::element::Geometry.
在文件 Geometry.cpp 第 59 行定义.
引用了 carla::road::element::Geometry::_heading, carla::road::element::Geometry::_length, carla::road::element::Geometry::_start_position, carla::geom::Math::Clamp(), DEBUG_ASSERT, carla::road::element::DirectedPoint::location, carla::road::element::DirectedPoint::tangent, carla::geom::Vector3D::x , 以及 carla::geom::Vector3D::y.
被这些函数引用 DistanceTo().
函数调用图:
这是这个函数的调用关系图: