13 #ifdef LIBCARLA_INCLUDED_FROM_UE4 15 #include "Math/Vector.h" 17 #endif // LIBCARLA_INCLUDED_FROM_UE4 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};
101 #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. ...
static auto DistanceSquared(const Vector3D &a, const Vector3D &b)
friend Location operator-(Location lhs, const Location &rhs)
Location(const Vector3D &rhs)
auto Distance(const Location &loc) const
Location(const Vector3DInt &rhs)
auto DistanceSquared(const Location &loc) const
Location & operator-=(const Location &rhs)
friend Location operator+(Location lhs, const Location &rhs)