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

#include <Geometry.h>

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

Classes

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::Location & GetStartPosition ()
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 carla/road/element/Geometry.h.

Member Typedef Documentation

◆ Rtree

◆ TreeElement

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 )
inline

Member Function Documentation

◆ DistanceTo()

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

◆ Geta()

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

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

References _a.

◆ Getb()

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

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

References _b.

◆ Getc()

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

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

References _c.

◆ Getd()

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

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

References _d.

◆ PosFromDist()

◆ PreComputeSpline()

Member Data Documentation

◆ _a

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

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

Referenced by GeometryPoly3(), and Geta().

◆ _b

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

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

Referenced by GeometryPoly3(), and Getb().

◆ _c

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

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

Referenced by GeometryPoly3(), and Getc().

◆ _d

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

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

Referenced by GeometryPoly3(), and Getd().

◆ _poly

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

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

Referenced by GeometryPoly3(), and PreComputeSpline().

◆ _rtree

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

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

Referenced by PosFromDist(), and PreComputeSpline().


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