ProtoTracer  1.0
Real-time 3D rendering and animation engine
Loading...
Searching...
No Matches
YawPitchRoll.h
Go to the documentation of this file.
1/**
2 * @file YawPitchRoll.h
3 * @brief Represents an orientation using yaw, pitch, and roll angles.
4 *
5 * @date 22/12/2024
6 * @version 1.0
7 * @author Coela Can't
8 */
9
10#pragma once
11
12#include "Vector3D.h"
13
14/**
15 * @class YawPitchRoll
16 * @brief A class to represent yaw, pitch, and roll angles for orientation.
17 */
19public:
20 float Yaw; ///< The yaw angle, representing rotation around the vertical axis.
21 float Pitch; ///< The pitch angle, representing rotation around the lateral axis.
22 float Roll; ///< The roll angle, representing rotation around the longitudinal axis.
23
24 /**
25 * @brief Default constructor, initializes yaw, pitch, and roll to 0.
26 */
28
29 /**
30 * @brief Constructor to initialize yaw, pitch, and roll from a vector.
31 * @param vector A Vector3D where X = yaw, Y = pitch, Z = roll.
32 */
34
35 /**
36 * @brief Copy constructor.
37 * @param ypr The YawPitchRoll object to copy from.
38 */
40
41 /**
42 * @brief Constructor to initialize yaw, pitch, and roll with specific values.
43 * @param yaw The yaw angle.
44 * @param pitch The pitch angle.
45 * @param roll The roll angle.
46 */
47 YawPitchRoll(float yaw, float pitch, float roll);
48
49 /**
50 * @brief Converts the yaw, pitch, and roll angles to a string representation.
51 * @return A string representation of the YawPitchRoll object.
52 */
53 String ToString() const;
54};
Defines a 3D vector and various related operations.
Implements a generic Kalman Filter for 1D data.
Represents a 3D vector (X, Y, Z) and provides methods for vector arithmetic.
Definition Vector3D.h:26
A class to represent yaw, pitch, and roll angles for orientation.
float Yaw
The yaw angle, representing rotation around the vertical axis.
String ToString() const
Converts the yaw, pitch, and roll angles to a string representation.
YawPitchRoll()
Default constructor, initializes yaw, pitch, and roll to 0.
float Pitch
The pitch angle, representing rotation around the lateral axis.
float Roll
The roll angle, representing rotation around the longitudinal axis.