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

#include <Geometry.h>

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


struct  RtreeValue

Public Member Functions

std::pair< float, float > DistanceTo (const geom::Location &) const override
 GeometryPoly3 (double start_offset, double length, double heading, const geom::Location &start_pos, double a, double b, double c, double d)
double Geta () const
double Getb () const
double Getc () const
double Getd () 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

double _a
double _b
double _c
double _d
geom::CubicPolynomial _poly
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 196 of file Geometry.h.

Member Typedef Documentation

◆ Rtree

Definition at line 249 of file Geometry.h.

◆ TreeElement

Definition at line 250 of file Geometry.h.

Constructor & Destructor Documentation

◆ GeometryPoly3()

carla::road::element::GeometryPoly3::GeometryPoly3 ( double  start_offset,
double  length,
double  heading,
const geom::Location start_pos,
double  a,
double  b,
double  c,
double  d 

Definition at line 199 of file Geometry.h.

Member Function Documentation

◆ DistanceTo()

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

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

Definition at line 128 of file Geometry.cpp.

◆ Geta()

double carla::road::element::GeometryPoly3::Geta ( ) const

Definition at line 217 of file Geometry.h.

◆ Getb()

double carla::road::element::GeometryPoly3::Getb ( ) const

Definition at line 220 of file Geometry.h.

◆ Getc()

double carla::road::element::GeometryPoly3::Getc ( ) const

Definition at line 223 of file Geometry.h.

◆ Getd()

double carla::road::element::GeometryPoly3::Getd ( ) const

Definition at line 226 of file Geometry.h.

◆ PosFromDist()

DirectedPoint carla::road::element::GeometryPoly3::PosFromDist ( double  dist) const

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

Definition at line 109 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::GeometryPoly3::PreComputeSpline ( )

Definition at line 134 of file Geometry.cpp.

Member Data Documentation

◆ _a

double carla::road::element::GeometryPoly3::_a

Definition at line 238 of file Geometry.h.

◆ _b

double carla::road::element::GeometryPoly3::_b

Definition at line 239 of file Geometry.h.

◆ _c

double carla::road::element::GeometryPoly3::_c

Definition at line 240 of file Geometry.h.

◆ _d

double carla::road::element::GeometryPoly3::_d

Definition at line 241 of file Geometry.h.

◆ _poly

geom::CubicPolynomial carla::road::element::GeometryPoly3::_poly

Definition at line 236 of file Geometry.h.

◆ _rtree

Rtree carla::road::element::GeometryPoly3::_rtree

Definition at line 251 of file Geometry.h.

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