Flair
Framework Libre Air
RotationMatrix.h
Go to the documentation of this file.
1 // %flair:license{
2 // This file is part of the Flair framework distributed under the
3 // CECILL-C License, Version 1.0.
4 // %flair:license}
12 #ifndef ROTATIONMATRIX_H
13 #define ROTATIONMATRIX_H
14 
15 #include <stddef.h>
16 
17 namespace flair {
18 namespace core {
19 class Euler;
20 class Quaternion;
21 
27 public:
35 
41 
47  void ToEuler(Euler &euler) const;
48 
54  Euler ToEuler(void) const;
55 
61  void ToQuaternion(Quaternion &quaternion) const;
62 
68  Quaternion ToQuaternion(void) const;
69 
74  float m[3][3];
75 
76  float &operator()(size_t row, size_t col);
77  const float &operator()(size_t row, size_t col) const;
78 };
79 
80 } // end namespace core
81 } // end namespace flair
82 
83 #endif // ROTATIONMATRIX_H
Euler ToEuler(void) const
Convert to euler angles.
namespace of the flair Framework
Definition: Ahrs.h:19
Class defining euler angles.
Definition: Euler.h:27
Class defining a rotation matrix.
Definition: RotationMatrix.h:26
RotationMatrix()
Constructor.
Quaternion ToQuaternion(void) const
Convert to quaternion.
float m[3][3]
matrix
Definition: RotationMatrix.h:74
Class defining a quaternion.
Definition: Quaternion.h:26