51 const float len =
Length();
53 const float k = 1.0f / len;
120 return (
x == rhs.
x) && (
y == rhs.
y);
124 return !(*
this == rhs);
131#ifdef LIBCARLA_INCLUDED_FROM_UE4
135 return *
this * 1e-2f;
144 return FVector2D{
x,
y};
149 MSGPACK_DEFINE_ARRAY(
x,
y)
#define DEVELOPMENT_ASSERT(pred)
Vector2D ToMeters() const
Return a Vector2D converted from centimeters to meters.
friend Vector2D operator/(float lhs, Vector2D rhs)
friend Vector2D operator-(Vector2D lhs, const Vector2D &rhs)
bool operator==(const Vector2D &rhs) const
Vector2D & operator*=(float rhs)
friend Vector2D operator+(Vector2D lhs, const Vector2D &rhs)
Vector2D(float ix, float iy)
friend Vector2D operator/(Vector2D lhs, float rhs)
Vector2D & operator+=(const Vector2D &rhs)
FVector2D ToFVector2D() const
Vector2D MakeUnitVector() const
float SquaredLength() const
bool operator!=(const Vector2D &rhs) const
friend Vector2D operator*(Vector2D lhs, float rhs)
Vector2D ToCentimeters() const
Return a Vector2D converted from meters to centimeters.
Vector2D & operator/=(float rhs)
friend Vector2D operator*(float lhs, Vector2D rhs)
Vector2D & operator-=(const Vector2D &rhs)
This file contains definitions of common data structures used in traffic manager.