CARLA
Loading...
Searching...
No Matches
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]

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

Definition at line 27 of file RightHandedVector3D.h.

References x, y, and z.

◆ RightHandedVector3D() [3/3]

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.

References x, y, and z.

Member Function Documentation

◆ operator Vector3D()

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 carla::geom::Vector3D::Vector3D(), x, y, and z.

Member Data Documentation

◆ x

◆ y

◆ z


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