13 #ifdef LIBCARLA_INCLUDED_FROM_UE4 14 # include "Math/Vector.h" 15 #endif // LIBCARLA_INCLUDED_FROM_UE4 35 static_cast<float>(rhs.
y),
36 static_cast<float>(rhs.
z)) {}
51 static_cast<Vector3D &
>(*this) += rhs;
61 static_cast<Vector3D &
>(*this) -= rhs;
75 return static_cast<const Vector3D &
>(*this) == rhs;
79 return !(*
this == rhs);
86 #ifdef LIBCARLA_INCLUDED_FROM_UE4 89 :
Location(1e-2f * vector.X, 1e-2f * vector.Y, 1e-2f * vector.Z) {}
91 operator FVector()
const {
92 return FVector{1e2f *
x, 1e2f *
y, 1e2f *
z};
95 #endif // LIBCARLA_INCLUDED_FROM_UE4 static auto Distance(const Vector3D &a, const Vector3D &b)
Location & operator+=(const Location &rhs)
bool operator==(const Location &rhs) const
bool operator!=(const Location &rhs) const
This file contains definitions of common data structures used in traffic manager. ...
friend Location operator-(Location lhs, const Location &rhs)
Location(const Vector3D &rhs)
auto Distance(const Location &loc) const
Location(const Vector3DInt &rhs)
Location & operator-=(const Location &rhs)
friend Location operator+(Location lhs, const Location &rhs)