|
CARLA
|
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 |
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.
|
default |
|
inlineconstexpr |
Definition at line 27 of file RightHandedVector3D.h.
|
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.
|
inlineconstexpr |
| float carla::geom::RightHandedVector3D::x = 0.0f |
Definition at line 21 of file RightHandedVector3D.h.
Referenced by carla::geom::Location::FromRightHanded(), carla::geom::RightHandedTransform::GetMatrix(), operator Vector3D(), carla::geom::RightHandedTransform::operator==(), carla::geom::Quaternion::RotatedVector(), TEST(), TEST(), TEST(), and TEST().
| float carla::geom::RightHandedVector3D::y = 0.0f |
Definition at line 22 of file RightHandedVector3D.h.
Referenced by carla::geom::Location::FromRightHanded(), carla::geom::RightHandedTransform::GetMatrix(), operator Vector3D(), carla::geom::RightHandedTransform::operator==(), carla::geom::Quaternion::RotatedVector(), TEST(), TEST(), TEST(), and TEST().
| float carla::geom::RightHandedVector3D::z = 0.0f |
Definition at line 23 of file RightHandedVector3D.h.
Referenced by carla::geom::Location::FromRightHanded(), carla::geom::RightHandedTransform::GetMatrix(), operator Vector3D(), carla::geom::RightHandedTransform::operator==(), carla::geom::Quaternion::RotatedVector(), TEST(), TEST(), TEST(), and TEST().