14#ifdef LIBCARLA_INCLUDED_FROM_UE4
16#include "Math/Vector.h"
37 static_cast<float>(rhs.
y),
38 static_cast<float>(rhs.
z)) {
74 static_cast<Vector3D &
>(*this) += rhs;
84 static_cast<Vector3D &
>(*this) -= rhs;
97#ifdef LIBCARLA_INCLUDED_FROM_UE4
100 :
Location(1e-2f * vector.X, 1e-2f * vector.Y, 1e-2f * vector.Z) {}
102 operator FVector()
const {
103 return FVector{1e2f *
x, 1e2f *
y, 1e2f *
z};
118 return !(lhs == rhs);
static constexpr auto DistanceSquared(const Vector3D &a, const Vector3D &b)
static auto Distance(const Vector3D &a, const Vector3D &b)
constexpr bool operator!=(Location lhs, Location rhs)
constexpr bool operator==(Location lhs, Location rhs)
This file contains definitions of common data structures used in traffic manager.
constexpr Location & operator+=(Location rhs)
constexpr RightHandedVector3D ToRightHanded() const
This location expressed in a right-handed, x-forward / y-**left** / z-up frame (ROS REP-103 "FLU"): (...
constexpr friend Location operator-(Location lhs, Location rhs)
constexpr friend Location operator+(Location lhs, Location rhs)
constexpr Location & operator-=(Location rhs)
constexpr auto DistanceSquared(Location loc) const
auto Distance(Location loc) const
constexpr Location(Vector3DInt rhs)
Location(const FVector &vector)
static constexpr Location FromRightHanded(const RightHandedVector3D &rhs)
Inverse of ToRightHanded().
Internal adapter that holds a Vector3D in a right-handed coordinate frame.