13 #ifdef LIBCARLA_INCLUDED_FROM_UE4 15 #include "Math/Rotator.h" 17 #endif // LIBCARLA_INCLUDED_FROM_UE4 75 in_point.
x * (cp * cy) +
76 in_point.
y * (cy * sp * sr - sy * cr) +
77 in_point.
z * (-cy * sp * cr - sy * sr);
80 in_point.
x * (cp * sy) +
81 in_point.
y * (sy * sp * sr + cy * cr) +
82 in_point.
z * (-sy * sp * cr + cy * sr);
86 in_point.
y * (-cp * sr) +
87 in_point.
z * (cp * cr);
110 in_point.
x * (cp * cy) +
111 in_point.
y * (cp * sy) +
115 in_point.
x * (cy * sp * sr - sy * cr) +
116 in_point.
y * (sy * sp * sr + cy * cr) +
117 in_point.
z * (-cp * sr);
120 in_point.
x * (-cy * sp * cr - sy * sr) +
121 in_point.
y * (-sy * sp * cr + cy * sr) +
122 in_point.
z * (cp * cr);
124 in_point = out_point;
132 return (pitch == rhs.
pitch) && (yaw == rhs.
yaw) && (roll == rhs.
roll);
136 return !(*
this == rhs);
143 #ifdef LIBCARLA_INCLUDED_FROM_UE4 146 :
Rotation(rotator.Pitch, rotator.Yaw, rotator.Roll) {}
148 operator FRotator()
const {
152 #endif // LIBCARLA_INCLUDED_FROM_UE4 Vector3D GetRightVector() const
void InverseRotateVector(Vector3D &in_point) const
static Vector3D GetUpVector(const Rotation &rotation)
Compute the unit vector pointing towards the Y-axis of rotation.
Vector3D RotateVector(const Vector3D &in_point) const
static Vector3D GetForwardVector(const Rotation &rotation)
Compute the unit vector pointing towards the X-axis of rotation.
This file contains definitions of common data structures used in traffic manager. ...
static Vector3D GetRightVector(const Rotation &rotation)
Compute the unit vector pointing towards the Y-axis of rotation.
bool operator==(const Rotation &rhs) const
bool operator!=(const Rotation &rhs) const
static constexpr T ToRadians(T deg)
Vector3D GetForwardVector() const
Rotation(float p, float y, float r)
MSGPACK_DEFINE_ARRAY(pitch, yaw, roll)
Vector3D GetUpVector() const
void RotateVector(Vector3D &in_point) const