CARLA
Loading...
Searching...
No Matches
carla::road::element::GeometrySpiral Class Referencefinal

#include <Geometry.h>

Inheritance diagram for carla::road::element::GeometrySpiral:

Public Member Functions

std::pair< float, float > DistanceTo (const geom::Location &) const override
 GeometrySpiral (double start_offset, double length, double heading, const geom::Location &start_pos, double curv_s, double curv_e)
double GetCurveEnd ()
double GetCurveStart ()
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

Private Attributes

double _curve_end
double _curve_start

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

Detailed Description

Definition at line 164 of file carla/road/element/Geometry.h.

Constructor & Destructor Documentation

◆ GeometrySpiral()

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

Member Function Documentation

◆ DistanceTo()

std::pair< float, float > carla::road::element::GeometrySpiral::DistanceTo ( const geom::Location & location) const
overridevirtual

◆ GetCurveEnd()

double carla::road::element::GeometrySpiral::GetCurveEnd ( )
inline

Definition at line 182 of file carla/road/element/Geometry.h.

References _curve_end.

◆ GetCurveStart()

double carla::road::element::GeometrySpiral::GetCurveStart ( )
inline

Definition at line 178 of file carla/road/element/Geometry.h.

References _curve_start.

◆ PosFromDist()

Member Data Documentation

◆ _curve_end

double carla::road::element::GeometrySpiral::_curve_end
private

Definition at line 193 of file carla/road/element/Geometry.h.

Referenced by GeometrySpiral(), GetCurveEnd(), and PosFromDist().

◆ _curve_start

double carla::road::element::GeometrySpiral::_curve_start
private

Definition at line 192 of file carla/road/element/Geometry.h.

Referenced by GeometrySpiral(), GetCurveStart(), and PosFromDist().


The documentation for this class was generated from the following files: