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

Internal adapter that holds a Vector3D in a right-handed coordinate frame. More...

#include <RightHandedVector3D.h>

Public Member Functions

constexpr operator Vector3D () const
 Implicit boundary conversion back to a left-handed Vector3D.
 
 RightHandedVector3D ()=default
 
constexpr RightHandedVector3D (const Vector3D &v)
 Implicit boundary conversion from a left-handed Vector3D.
 
constexpr RightHandedVector3D (float ix, float iy, float iz)
 

Public Attributes

float x = 0.0f
 
float y = 0.0f
 
float z = 0.0f
 

Detailed Description

Internal adapter that holds a Vector3D in a right-handed coordinate frame.

CARLA / Unreal expose vectors in a left-handed frame; Quaternion and Rotation work in right-handed math internally. The Y axis is negated on construction and re-negated on conversion back, so the handedness flip happens exactly once at the boundary.

Definition at line 19 of file RightHandedVector3D.h.

Constructor & Destructor Documentation

◆ RightHandedVector3D() [1/3]

carla::geom::RightHandedVector3D::RightHandedVector3D ( )
default

◆ RightHandedVector3D() [2/3]

constexpr carla::geom::RightHandedVector3D::RightHandedVector3D ( float  ix,
float  iy,
float  iz 
)
inlineconstexpr

Definition at line 27 of file RightHandedVector3D.h.

◆ RightHandedVector3D() [3/3]

constexpr carla::geom::RightHandedVector3D::RightHandedVector3D ( const Vector3D &  v)
inlineconstexpr

Implicit boundary conversion from a left-handed Vector3D.

Negates the Y component so internal math runs right-handed.

Definition at line 35 of file RightHandedVector3D.h.

Member Function Documentation

◆ operator Vector3D()

constexpr carla::geom::RightHandedVector3D::operator Vector3D ( ) const
inlineconstexpr

Implicit boundary conversion back to a left-handed Vector3D.

Definition at line 42 of file RightHandedVector3D.h.

References x, y, and z.

Member Data Documentation

◆ x

float carla::geom::RightHandedVector3D::x = 0.0f

◆ y

float carla::geom::RightHandedVector3D::y = 0.0f

◆ z

float carla::geom::RightHandedVector3D::z = 0.0f

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