CARLA
Loading...
Searching...
No Matches
carla::road::element::Geometry Class Referenceabstract

#include <Geometry.h>

Inheritance diagram for carla::road::element::Geometry:

Public Member Functions

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 Member Functions

 Geometry (GeometryType type, double start_offset, double length, double heading, const geom::Location &start_pos)

Protected Attributes

double _heading
double _length
geom::Location _start_position
double _start_position_offset
GeometryType _type

Detailed Description

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

Constructor & Destructor Documentation

◆ ~Geometry()

virtual carla::road::element::Geometry::~Geometry ( )
virtualdefault

◆ Geometry()

Member Function Documentation

◆ DistanceTo()

virtual std::pair< float, float > carla::road::element::Geometry::DistanceTo ( const geom::Location & p) const
pure virtual

◆ GetHeading()

double carla::road::element::Geometry::GetHeading ( ) const
inline

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

References _heading.

◆ GetLength()

double carla::road::element::Geometry::GetLength ( ) const
inline

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

References _length.

◆ GetStartOffset()

double carla::road::element::Geometry::GetStartOffset ( ) const
inline

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

References _start_position_offset.

◆ GetStartPosition()

const geom::Location & carla::road::element::Geometry::GetStartPosition ( )
inline

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

References _start_position.

◆ GetType()

GeometryType carla::road::element::Geometry::GetType ( ) const
inline

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

References _type.

◆ PosFromDist()

Member Data Documentation

◆ _heading

◆ _length

◆ _start_position

◆ _start_position_offset

double carla::road::element::Geometry::_start_position_offset
protected

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

Referenced by Geometry(), and GetStartOffset().

◆ _type

GeometryType carla::road::element::Geometry::_type
protected

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

Referenced by Geometry(), and GetType().


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