14 #ifdef LIBCARLA_INCLUDED_FROM_UE4 16 #include "Math/Transform.h" 18 #endif // LIBCARLA_INCLUDED_FROM_UE4 43 : location(in_location),
47 : location(in_location),
48 rotation(in_rotation) {}
68 auto out_point = in_point;
76 auto out_vector = in_vector;
78 in_vector = out_vector;
83 auto out_point = in_point;
91 const float yaw = rotation.
yaw;
95 const float roll = rotation.
roll;
99 const float pitch = rotation.
pitch;
103 std::array<float, 16> transform = {
104 cp * cy, cy * sp * sr - sy * cr, -cy * sp * cr - sy * sr, location.
x,
105 cp * sy, sy * sp * sr + cy * cr, -sy * sp * cr + cy * sr, location.
y,
106 sp, -cp * sr, cp * cr, location.
z,
114 const float yaw = rotation.
yaw;
118 const float roll = rotation.
roll;
122 const float pitch = rotation.
pitch;
129 std::array<float, 16> transform = {
130 cp * cy, cp * sy, sp, a.
x,
131 cy * sp * sr - sy * cr, sy * sp * sr + cy * cr, -cp * sr, a.
y,
132 -cy * sp * cr - sy * sr, -sy * sp * cr + cy * sr, cp * cr, a.
z,
133 0.0f, 0.0f, 0.0f, 1.0};
147 return !(*
this == rhs);
154 #ifdef LIBCARLA_INCLUDED_FROM_UE4 159 operator FTransform()
const {
160 const FVector scale{1.0f, 1.0f, 1.0f};
161 return FTransform{FRotator(rotation), FVector(location), scale};
164 #endif // LIBCARLA_INCLUDED_FROM_UE4 Vector3D GetRightVector() const
void InverseRotateVector(Vector3D &in_point) const
This file contains definitions of common data structures used in traffic manager. ...
static constexpr T ToRadians(T deg)
Vector3D GetForwardVector() const
Vector3D GetUpVector() const
void RotateVector(Vector3D &in_point) const