source: flair-dev/trunk/include/FlairCore/RotationMatrix.h @ 13

Last change on this file since 13 was 13, checked in by Bayard Gildas, 5 years ago

formatting script + include reformatted

File size: 1.1 KB
RevLine 
[2]1// %flair:license{
[13]2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
[2]4// %flair:license}
5/*!
6 * \file RotationMatrix.h
7 * \brief Class defining a rotation matrix
8 * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
9 * \date 2016/02/09
10 * \version 4.0
11 */
12#ifndef ROTATIONMATRIX_H
13#define ROTATIONMATRIX_H
14
15#include <stddef.h>
16
17namespace flair {
18namespace core {
[13]19class Euler;
[2]20
[13]21/*! \class RotationMatrix
22*
23* \brief Class defining a rotation matrix
24*/
25class RotationMatrix {
26public:
27  /*!
28  * \brief Constructor
29  *
30  * Construct an identity rotation matrix
31  *
32  */
33  RotationMatrix();
[2]34
[13]35  /*!
36  * \brief Destructor
37  *
38  */
39  ~RotationMatrix();
[2]40
[13]41  /*!
42  * \brief Convert to euler angles
43  *
44  * \param euler output euler angles
45  */
46  void ToEuler(Euler &euler) const;
[2]47
[13]48  /*!
49  * \brief Convert to euler angles
50  *
51  * \return euler angles
52  */
53  Euler ToEuler(void) const;
54  /*!
55  * \brief matrix
56  *
57  */
58  float m[3][3];
[2]59
[13]60  float &operator()(size_t row, size_t col);
61  const float &operator()(size_t row, size_t col) const;
62};
[2]63
64} // end namespace core
65} // end namespace flair
66
67#endif // ROTATIONMATRIX_H
Note: See TracBrowser for help on using the repository browser.