CARLA
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
carla::geom::OffsetTransform Class Reference

#include <GeoProjectionsParams.h>

Public Member Functions

Location ApplyInverseTransformation (const Location &location) const
 Inverse of ApplyTransformation: recovers the pre-offset location so that ApplyTransformation(ApplyInverseTransformation(l)) == l.
 
Location ApplyTransformation (const Location &location) const
 
 OffsetTransform ()=default
 
 OffsetTransform (double offset_x, double offset_y, double offset_z, double offset_hdg)
 
bool operator!= (const OffsetTransform &rhs) const
 
bool operator== (const OffsetTransform &rhs) const
 

Public Attributes

double offset_cos_h = 1.0
 
double offset_sin_h = 0.0
 
double offset_x = 0.0
 
double offset_y = 0.0
 
double offset_z = 0.0
 

Detailed Description

Definition at line 73 of file GeoProjectionsParams.h.

Constructor & Destructor Documentation

◆ OffsetTransform() [1/2]

carla::geom::OffsetTransform::OffsetTransform ( )
default

◆ OffsetTransform() [2/2]

carla::geom::OffsetTransform::OffsetTransform ( double  offset_x,
double  offset_y,
double  offset_z,
double  offset_hdg 
)
inline

Definition at line 78 of file GeoProjectionsParams.h.

Member Function Documentation

◆ ApplyInverseTransformation()

Location carla::geom::OffsetTransform::ApplyInverseTransformation ( const Location &  location) const
inline

Inverse of ApplyTransformation: recovers the pre-offset location so that ApplyTransformation(ApplyInverseTransformation(l)) == l.

Definition at line 100 of file GeoProjectionsParams.h.

References offset_cos_h, offset_sin_h, offset_x, offset_y, offset_z, carla::geom::Vector3D::x, x, carla::geom::Vector3D::y, y, and carla::geom::Vector3D::z.

Referenced by TEST().

◆ ApplyTransformation()

Location carla::geom::OffsetTransform::ApplyTransformation ( const Location &  location) const
inline

◆ operator!=()

bool carla::geom::OffsetTransform::operator!= ( const OffsetTransform &  rhs) const
inline

Definition at line 115 of file GeoProjectionsParams.h.

◆ operator==()

bool carla::geom::OffsetTransform::operator== ( const OffsetTransform &  rhs) const
inline

Definition at line 111 of file GeoProjectionsParams.h.

References offset_cos_h, offset_sin_h, offset_x, offset_y, and offset_z.

Member Data Documentation

◆ offset_cos_h

double carla::geom::OffsetTransform::offset_cos_h = 1.0

◆ offset_sin_h

double carla::geom::OffsetTransform::offset_sin_h = 0.0

◆ offset_x

double carla::geom::OffsetTransform::offset_x = 0.0

◆ offset_y

double carla::geom::OffsetTransform::offset_y = 0.0

◆ offset_z

double carla::geom::OffsetTransform::offset_z = 0.0

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