13 #ifdef LIBCARLA_INCLUDED_FROM_UE4 14 # include "Math/Rotator.h" 15 #endif // LIBCARLA_INCLUDED_FROM_UE4 73 in_point.
x * (cp * cy) +
74 in_point.
y * (cy * sp * sr - sy * cr) +
75 in_point.
z * (-cy * sp * cr - sy * sr);
78 in_point.
x * (cp * sy) +
79 in_point.
y * (sy * sp * sr + cy * cr) +
80 in_point.
z * (-sy * sp * cr + cy * sr);
84 in_point.
y * (-cp * sr) +
85 in_point.
z * (cp * cr);
108 in_point.
x * (cp * cy) +
109 in_point.
y * (cp * sy) +
113 in_point.
x * (cy * sp * sr - sy * cr) +
114 in_point.
y * (sy * sp * sr + cy * cr) +
115 in_point.
z * (-cp * sr);
118 in_point.
x * (-cy * sp * cr - sy * sr) +
119 in_point.
y * (-sy * sp * cr + cy * sr) +
120 in_point.
z * (cp * cr);
122 in_point = out_point;
130 return (pitch == rhs.
pitch) && (yaw == rhs.
yaw) && (roll == rhs.
roll);
134 return !(*
this == rhs);
141 #ifdef LIBCARLA_INCLUDED_FROM_UE4 144 :
Rotation(rotator.Pitch, rotator.Yaw, rotator.Roll) {}
146 operator FRotator()
const {
150 #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