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

#include <Geometry.h>

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

Classes

struct  RtreeValue
 

Public Member Functions

std::pair< float, float > DistanceTo (const geom::Location &) const override
 
 GeometryParamPoly3 (double start_offset, double length, double heading, const geom::Location &start_pos, double aU, double bU, double cU, double dU, double aV, double bV, double cV, double dV, bool arcLength)
 
double GetaU () const
 
double GetaV () const
 
double GetbU () const
 
double GetbV () const
 
double GetcU () const
 
double GetcV () const
 
double GetdU () const
 
double GetdV () const
 
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::LocationGetStartPosition ()
 
GeometryType GetType () const
 
virtual ~Geometry ()=default
 

Private Types

using Rtree = geom::SegmentCloudRtree< RtreeValue, 1 >
 
using TreeElement = Rtree::TreeElement
 

Private Member Functions

void PreComputeSpline ()
 

Private Attributes

bool _arcLength
 
double _aU
 
double _aV
 
double _bU
 
double _bV
 
double _cU
 
double _cV
 
double _dU
 
double _dV
 
geom::CubicPolynomial _polyU
 
geom::CubicPolynomial _polyV
 
Rtree _rtree
 

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 255 of file Geometry.h.

Member Typedef Documentation

◆ Rtree

Definition at line 337 of file Geometry.h.

◆ TreeElement

Definition at line 338 of file Geometry.h.

Constructor & Destructor Documentation

◆ GeometryParamPoly3()

carla::road::element::GeometryParamPoly3::GeometryParamPoly3 ( double  start_offset,
double  length,
double  heading,
const geom::Location start_pos,
double  aU,
double  bU,
double  cU,
double  dU,
double  aV,
double  bV,
double  cV,
double  dV,
bool  arcLength 
)
inline

Definition at line 258 of file Geometry.h.

Member Function Documentation

◆ DistanceTo()

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

Implements carla::road::element::Geometry.

Definition at line 185 of file Geometry.cpp.

◆ GetaU()

double carla::road::element::GeometryParamPoly3::GetaU ( ) const
inline

Definition at line 287 of file Geometry.h.

◆ GetaV()

double carla::road::element::GeometryParamPoly3::GetaV ( ) const
inline

Definition at line 299 of file Geometry.h.

◆ GetbU()

double carla::road::element::GeometryParamPoly3::GetbU ( ) const
inline

Definition at line 290 of file Geometry.h.

◆ GetbV()

double carla::road::element::GeometryParamPoly3::GetbV ( ) const
inline

Definition at line 302 of file Geometry.h.

◆ GetcU()

double carla::road::element::GeometryParamPoly3::GetcU ( ) const
inline

Definition at line 293 of file Geometry.h.

◆ GetcV()

double carla::road::element::GeometryParamPoly3::GetcV ( ) const
inline

Definition at line 305 of file Geometry.h.

◆ GetdU()

double carla::road::element::GeometryParamPoly3::GetdU ( ) const
inline

Definition at line 296 of file Geometry.h.

◆ GetdV()

double carla::road::element::GeometryParamPoly3::GetdV ( ) const
inline

Definition at line 308 of file Geometry.h.

◆ PosFromDist()

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

Implements carla::road::element::Geometry.

Definition at line 166 of file Geometry.cpp.

References carla::road::element::DirectedPoint::location, carla::road::element::RotatebyAngle(), carla::road::element::DirectedPoint::tangent, carla::geom::Vector2D::x, carla::geom::Vector3D::x, carla::geom::Vector2D::y, and carla::geom::Vector3D::y.

+ Here is the call graph for this function:

◆ PreComputeSpline()

void carla::road::element::GeometryParamPoly3::PreComputeSpline ( )
private

Definition at line 191 of file Geometry.cpp.

Member Data Documentation

◆ _arcLength

bool carla::road::element::GeometryParamPoly3::_arcLength
private

Definition at line 328 of file Geometry.h.

◆ _aU

double carla::road::element::GeometryParamPoly3::_aU
private

Definition at line 320 of file Geometry.h.

◆ _aV

double carla::road::element::GeometryParamPoly3::_aV
private

Definition at line 324 of file Geometry.h.

◆ _bU

double carla::road::element::GeometryParamPoly3::_bU
private

Definition at line 321 of file Geometry.h.

◆ _bV

double carla::road::element::GeometryParamPoly3::_bV
private

Definition at line 325 of file Geometry.h.

◆ _cU

double carla::road::element::GeometryParamPoly3::_cU
private

Definition at line 322 of file Geometry.h.

◆ _cV

double carla::road::element::GeometryParamPoly3::_cV
private

Definition at line 326 of file Geometry.h.

◆ _dU

double carla::road::element::GeometryParamPoly3::_dU
private

Definition at line 323 of file Geometry.h.

◆ _dV

double carla::road::element::GeometryParamPoly3::_dV
private

Definition at line 327 of file Geometry.h.

◆ _polyU

geom::CubicPolynomial carla::road::element::GeometryParamPoly3::_polyU
private

Definition at line 318 of file Geometry.h.

◆ _polyV

geom::CubicPolynomial carla::road::element::GeometryParamPoly3::_polyV
private

Definition at line 319 of file Geometry.h.

◆ _rtree

Rtree carla::road::element::GeometryParamPoly3::_rtree
private

Definition at line 339 of file Geometry.h.


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