#include <Geometry.h>
Inheritance diagram for carla::road::element::GeometryLine:
Collaboration diagram for carla::road::element::GeometryLine:Public Member Functions | |
| std::pair< float, float > | DistanceTo (const geom::Location &p) const override |
| Returns a pair containing: More... | |
| GeometryLine (double start_offset, double length, double heading, const geom::Location &start_pos) | |
| DirectedPoint | PosFromDist (double dist) const override |
Public Member Functions inherited from carla::road::element::Geometry | |
| double | GetHeading () const |
| double | GetLength () const |
| double | GetStartOffset () const |
| const geom::Location & | GetStartPosition () |
| GeometryType | GetType () const |
| virtual | ~Geometry ()=default |
Additional Inherited Members | |
Protected Member Functions inherited from carla::road::element::Geometry | |
| Geometry (GeometryType type, double start_offset, double length, double heading, const geom::Location &start_pos) | |
Protected Attributes inherited from carla::road::element::Geometry | |
| double | _heading |
| double | _length |
| geom::Location | _start_position |
| double | _start_position_offset |
| GeometryType | _type |
Definition at line 100 of file Geometry.h.
|
inline |
Definition at line 103 of file Geometry.h.
|
inlineoverridevirtual |
Returns a pair containing:
| p | point to calculate the distance |
Implements carla::road::element::Geometry.
Definition at line 118 of file Geometry.h.
References carla::geom::Math::DistanceSegmentToPoint().
Here is the call graph for this function:
|
overridevirtual |
Implements carla::road::element::Geometry.
Definition at line 36 of file Geometry.cpp.
References carla::geom::Math::Clamp(), DEBUG_ASSERT, carla::road::element::DirectedPoint::location, carla::road::element::DirectedPoint::tangent, carla::geom::Vector3D::x, and carla::geom::Vector3D::y.
Here is the call graph for this function:
1.8.13