#include <Geometry.h>
Public 成员函数 | |
std::pair< float, float > | DistanceTo (const geom::Location &p) const override |
Returns a pair containing: | |
GeometryLine (double start_offset, double length, double heading, const geom::Location &start_pos) | |
DirectedPoint | PosFromDist (double dist) const override |
Public 成员函数 继承自 carla::road::element::Geometry | |
double | GetHeading () const |
double | GetLength () const |
double | GetStartOffset () const |
const geom::Location & | GetStartPosition () |
GeometryType | GetType () const |
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 第 100 行定义.
|
inline |
在文件 Geometry.h 第 103 行定义.
|
inlineoverridevirtual |
Returns a pair containing:
p | point to calculate the distance |
实现了 carla::road::element::Geometry.
在文件 Geometry.h 第 118 行定义.
引用了 carla::road::element::Geometry::_length, carla::road::element::Geometry::_start_position, carla::geom::Math::DistanceSegmentToPoint() , 以及 PosFromDist().
|
overridevirtual |
实现了 carla::road::element::Geometry.
在文件 Geometry.cpp 第 36 行定义.
引用了 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().