CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
carla::road::element::GeometryLine类 参考final

#include <Geometry.h>

+ 类 carla::road::element::GeometryLine 继承关系图:
+ carla::road::element::GeometryLine 的协作图:

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::LocationGetStartPosition ()
 
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.h100 行定义.

构造及析构函数说明

◆ GeometryLine()

carla::road::element::GeometryLine::GeometryLine ( double start_offset,
double length,
double heading,
const geom::Location & start_pos )
inline

在文件 Geometry.h103 行定义.

成员函数说明

◆ DistanceTo()

std::pair< float, float > carla::road::element::GeometryLine::DistanceTo ( const geom::Location & p) const
inlineoverridevirtual

Returns a pair containing:

  • first: distance to the nearest point in this line from the beginning of the shape.
  • second: Euclidean distance from the nearest point in this line to p.
    参数
    ppoint to calculate the distance

实现了 carla::road::element::Geometry.

在文件 Geometry.h118 行定义.

引用了 carla::road::element::Geometry::_length, carla::road::element::Geometry::_start_position, carla::geom::Math::DistanceSegmentToPoint() , 以及 PosFromDist().

+ 函数调用图:

◆ PosFromDist()

DirectedPoint carla::road::element::GeometryLine::PosFromDist ( double dist) const
overridevirtual

实现了 carla::road::element::Geometry.

在文件 Geometry.cpp36 行定义.

引用了 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().

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

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