29#ifdef LIBCARLA_INCLUDED_FROM_UE4
35 static_cast<float>(a_cm_per_s2.X) * 1e-2f,
36 static_cast<float>(a_cm_per_s2.Y) * 1e-2f,
37 static_cast<float>(a_cm_per_s2.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 acceleration in metres per second squared.
constexpr Acceleration(const Vector3D &v)
Acceleration(const FVector &a_cm_per_s2)
Build an Acceleration (m/s^2) from an Unreal FVector expressed in centimetres per second squared.
constexpr Acceleration(float ix, float iy, float iz)
FVector ToFVectorCmPerSecondSquared() const
Return this Acceleration as an Unreal FVector in centimetres per second squared.