21 constexpr Velocity(
float ix,
float iy,
float iz)
29#ifdef LIBCARLA_INCLUDED_FROM_UE4
35 static_cast<float>(v_cm_per_s.X) * 1e-2f,
36 static_cast<float>(v_cm_per_s.Y) * 1e-2f,
37 static_cast<float>(v_cm_per_s.Z) * 1e-2f) {
43 return FVector{
x * 1e2f,
y * 1e2f,
z * 1e2f};
This file contains definitions of common data structures used in traffic manager.
Linear velocity in metres per second.
constexpr Velocity(const Vector3D &v)
Velocity(const FVector &v_cm_per_s)
Build a Velocity (m/s) from an Unreal FVector expressed in centimetres per second.
constexpr Velocity(float ix, float iy, float iz)
FVector ToFVectorCmPerSecond() const
Return this Velocity as an Unreal FVector in centimetres per second.