CARLA
Public Member Functions | Public Attributes | Friends | List of all members
carla::road::element::DirectedPoint Struct Reference

#include <Geometry.h>

+ Collaboration diagram for carla::road::element::DirectedPoint:

Public Member Functions

void ApplyLateralOffset (float lateral_offset)
 
 DirectedPoint ()
 
 DirectedPoint (const geom::Location &l, double t)
 
 DirectedPoint (float x, float y, float z, double t)
 

Public Attributes

geom::Location location = {0.0f, 0.0f, 0.0f}
 
double pitch = 0.0
 
double tangent = 0.0
 

Friends

bool operator== (const DirectedPoint &lhs, const DirectedPoint &rhs)
 

Detailed Description

Definition at line 26 of file Geometry.h.

Constructor & Destructor Documentation

◆ DirectedPoint() [1/3]

carla::road::element::DirectedPoint::DirectedPoint ( )
inline

Definition at line 28 of file Geometry.h.

◆ DirectedPoint() [2/3]

carla::road::element::DirectedPoint::DirectedPoint ( const geom::Location l,
double  t 
)
inline

Definition at line 31 of file Geometry.h.

◆ DirectedPoint() [3/3]

carla::road::element::DirectedPoint::DirectedPoint ( float  x,
float  y,
float  z,
double  t 
)
inline

Definition at line 34 of file Geometry.h.

Member Function Documentation

◆ ApplyLateralOffset()

void carla::road::element::DirectedPoint::ApplyLateralOffset ( float  lateral_offset)
Todo:
Z axis??

Definition at line 28 of file Geometry.cpp.

References location, tangent, carla::geom::Vector3D::x, and carla::geom::Vector3D::y.

Referenced by carla::road::MapBuilder::ComputeSignalTransform(), carla::road::Lane::ComputeTransform(), carla::road::Lane::GetCornerPositions(), carla::road::Road::GetDirectedPointIn(), and carla::road::Road::GetNearestLane().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator==

bool operator== ( const DirectedPoint lhs,
const DirectedPoint rhs 
)
friend

Definition at line 44 of file Geometry.h.

Member Data Documentation

◆ location

geom::Location carla::road::element::DirectedPoint::location = {0.0f, 0.0f, 0.0f}

◆ pitch

double carla::road::element::DirectedPoint::pitch = 0.0

◆ tangent

double carla::road::element::DirectedPoint::tangent = 0.0

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