CARLA
Public Member Functions | Public Attributes | List of all members
carla::geom::Rotation Class Reference

#include <Rotation.h>

+ Collaboration diagram for carla::geom::Rotation:

Public Member Functions

Vector3D GetForwardVector () const
 
Vector3D GetRightVector () const
 
Vector3D GetUpVector () const
 
void InverseRotateVector (Vector3D &in_point) const
 
 MSGPACK_DEFINE_ARRAY (pitch, yaw, roll)
 
bool operator!= (const Rotation &rhs) const
 
bool operator== (const Rotation &rhs) const
 
void RotateVector (Vector3D &in_point) const
 
Vector3D RotateVector (const Vector3D &in_point) const
 
 Rotation ()=default
 
 Rotation (float p, float y, float r)
 

Public Attributes

float pitch = 0.0f
 
float roll = 0.0f
 
float yaw = 0.0f
 

Detailed Description

Definition at line 20 of file Rotation.h.

Constructor & Destructor Documentation

◆ Rotation() [1/2]

carla::geom::Rotation::Rotation ( )
default

Referenced by operator!=().

+ Here is the caller graph for this function:

◆ Rotation() [2/2]

carla::geom::Rotation::Rotation ( float  p,
float  y,
float  r 
)
inline

Definition at line 41 of file Rotation.h.

Member Function Documentation

◆ GetForwardVector()

Vector3D carla::geom::Rotation::GetForwardVector ( ) const
inline

Definition at line 50 of file Rotation.h.

References carla::geom::Math::GetForwardVector().

Referenced by carla::geom::Transform::GetForwardVector(), and TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetRightVector()

Vector3D carla::geom::Rotation::GetRightVector ( ) const
inline

Definition at line 54 of file Rotation.h.

References carla::geom::Math::GetRightVector().

Referenced by carla::geom::Transform::GetRightVector().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetUpVector()

Vector3D carla::geom::Rotation::GetUpVector ( ) const
inline

Definition at line 58 of file Rotation.h.

References carla::geom::Math::GetUpVector().

Referenced by ACarlaGameModeBase::DebugShowSignals(), and carla::geom::Transform::GetUpVector().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InverseRotateVector()

void carla::geom::Rotation::InverseRotateVector ( Vector3D in_point) const
inline

Definition at line 96 of file Rotation.h.

References carla::geom::Math::ToRadians(), carla::geom::Vector3D::x, carla::geom::Vector3D::y, and carla::geom::Vector3D::z.

Referenced by carla::rss::RssCheck::GetSpeed(), and carla::geom::Transform::InverseTransformPoint().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MSGPACK_DEFINE_ARRAY()

carla::geom::Rotation::MSGPACK_DEFINE_ARRAY ( pitch  ,
yaw  ,
roll   
)

◆ operator!=()

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

Definition at line 133 of file Rotation.h.

References pitch, Rotation(), and yaw.

+ Here is the call graph for this function:

◆ operator==()

bool carla::geom::Rotation::operator== ( const Rotation rhs) const
inline

Definition at line 129 of file Rotation.h.

References pitch, roll, and yaw.

◆ RotateVector() [1/2]

void carla::geom::Rotation::RotateVector ( Vector3D in_point) const
inline

Definition at line 62 of file Rotation.h.

References carla::geom::Math::ToRadians(), carla::geom::Vector3D::x, carla::geom::Vector3D::y, and carla::geom::Vector3D::z.

Referenced by carla::geom::BoundingBox::GetLocalVertices(), RotateVector(), and carla::geom::Transform::TransformPoint().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RotateVector() [2/2]

Vector3D carla::geom::Rotation::RotateVector ( const Vector3D in_point) const
inline

Definition at line 90 of file Rotation.h.

References RotateVector().

+ Here is the call graph for this function:

Member Data Documentation

◆ pitch

float carla::geom::Rotation::pitch = 0.0f

◆ roll

float carla::geom::Rotation::roll = 0.0f

◆ yaw

float carla::geom::Rotation::yaw = 0.0f

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