13#ifdef LIBCARLA_INCLUDED_FROM_UE4
15#include "Math/Rotator.h"
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;
136 return !(*
this == rhs);
143#ifdef LIBCARLA_INCLUDED_FROM_UE4
146 :
Rotation(rotator.Pitch, rotator.Yaw, rotator.Roll) {}
148 operator FRotator()
const {
static Vector3D GetRightVector(const Rotation &rotation)
Compute the unit vector pointing towards the Y-axis of rotation.
static constexpr T ToRadians(T deg)
static Vector3D GetUpVector(const Rotation &rotation)
Compute the unit vector pointing towards the Y-axis of rotation.
static Vector3D GetForwardVector(const Rotation &rotation)
Compute the unit vector pointing towards the X-axis of rotation.
Vector3D RotateVector(const Vector3D &in_point) const
Rotation(const FRotator &rotator)
MSGPACK_DEFINE_ARRAY(pitch, yaw, roll)
bool operator==(const Rotation &rhs) const
Vector3D GetUpVector() const
Vector3D GetRightVector() const
void InverseRotateVector(Vector3D &in_point) const
bool operator!=(const Rotation &rhs) const
void RotateVector(Vector3D &in_point) const
Vector3D GetForwardVector() const
Rotation(float p, float y, float r)
This file contains definitions of common data structures used in traffic manager.