CARLA
Public Member Functions | Private Attributes | List of all members
carla::road::element::RoadInfoElevation Class Referencefinal

#include <RoadInfoElevation.h>

+ Inheritance diagram for carla::road::element::RoadInfoElevation:
+ Collaboration diagram for carla::road::element::RoadInfoElevation:

Public Member Functions

void AcceptVisitor (RoadInfoVisitor &v) final
 
double Evaluate (const double dist, double &out_tan) const
 
const geom::CubicPolynomialGetPolynomial () const
 
 RoadInfoElevation (double s, double a, double b, double c, double d)
 
- Public Member Functions inherited from carla::road::element::RoadInfo
double GetDistance () const
 Distance from road's start location. More...
 
virtual ~RoadInfo ()=default
 

Private Attributes

const geom::CubicPolynomial _elevation
 

Additional Inherited Members

- Protected Member Functions inherited from carla::road::element::RoadInfo
 RoadInfo (double distance=0.0)
 

Detailed Description

Definition at line 16 of file RoadInfoElevation.h.

Constructor & Destructor Documentation

◆ RoadInfoElevation()

carla::road::element::RoadInfoElevation::RoadInfoElevation ( double  s,
double  a,
double  b,
double  c,
double  d 
)
inline

Definition at line 19 of file RoadInfoElevation.h.

Member Function Documentation

◆ AcceptVisitor()

void carla::road::element::RoadInfoElevation::AcceptVisitor ( RoadInfoVisitor v)
inlinefinalvirtual

Implements carla::road::element::RoadInfo.

Definition at line 28 of file RoadInfoElevation.h.

◆ Evaluate()

double carla::road::element::RoadInfoElevation::Evaluate ( const double  dist,
double &  out_tan 
) const
inline
Todo:
unused? you can use the polynomial directly.

Definition at line 33 of file RoadInfoElevation.h.

References _elevation, carla::geom::CubicPolynomial::Evaluate(), and carla::geom::CubicPolynomial::Tangent().

+ Here is the call graph for this function:

◆ GetPolynomial()

const geom::CubicPolynomial& carla::road::element::RoadInfoElevation::GetPolynomial ( ) const
inline

Definition at line 38 of file RoadInfoElevation.h.

References _elevation.

Member Data Documentation

◆ _elevation

const geom::CubicPolynomial carla::road::element::RoadInfoElevation::_elevation
private

Definition at line 44 of file RoadInfoElevation.h.

Referenced by Evaluate(), and GetPolynomial().


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