13#ifdef LIBCARLA_INCLUDED_FROM_UE4
15#include "Math/Vector.h"
37 static_cast<float>(rhs.
y),
38 static_cast<float>(rhs.
z)) {}
57 static_cast<Vector3D &
>(*this) += rhs;
67 static_cast<Vector3D &
>(*this) -= rhs;
81 return static_cast<const Vector3D &
>(*this) == rhs;
85 return !(*
this == rhs);
92#ifdef LIBCARLA_INCLUDED_FROM_UE4
95 :
Location(1e-2f * vector.X, 1e-2f * vector.Y, 1e-2f * vector.Z) {}
97 operator FVector()
const {
98 return FVector{1e2f *
x, 1e2f *
y, 1e2f *
z};
Location & operator-=(const Location &rhs)
friend Location operator+(Location lhs, const Location &rhs)
bool operator==(const Location &rhs) const
Location(const Vector3DInt &rhs)
Location(const FVector &vector)
auto Distance(const Location &loc) const
Location & operator+=(const Location &rhs)
bool operator!=(const Location &rhs) const
auto DistanceSquared(const Location &loc) const
Location(const Vector3D &rhs)
friend Location operator-(Location lhs, const Location &rhs)
static auto DistanceSquared(const Vector3D &a, const Vector3D &b)
static auto Distance(const Vector3D &a, const Vector3D &b)
This file contains definitions of common data structures used in traffic manager.