transformationmatrix2.h
Go to the documentation of this file.
1 
9 #ifndef TRANSFORMATION_MATRIX2_H
10 #define TRANSFORMATION_MATRIX2_H
11 
12 namespace argos {
13  class CVector2;
14  class CRotationMatrix2;
15 }
16 
17 #include <argos3/core/utility/math/matrix/squarematrix.h>
18 
19 namespace argos {
20 
22 
23  public:
26  }
27 
29  SetFromMatrix(c_matrix);
30  }
31 
32  CTransformationMatrix2(const CRotationMatrix2& c_rotation, const CVector2& c_translation) : CSquareMatrix<3>() {
33  SetFromComponents(c_rotation, c_translation);
34  }
35 
36  CTransformationMatrix2(Real f_value0, Real f_value1, Real f_value2,
37  Real f_value3, Real f_value4, Real f_value5,
38  Real f_value6, Real f_value7, Real f_value8) : CSquareMatrix<3>() {
39  SetFromValues(f_value0, f_value1, f_value2,
40  f_value3, f_value4, f_value5,
41  f_value6, f_value7, f_value8);
42  }
43 
44  void SetFromMatrix(const CMatrix<3,3>& c_matrix);
45 
46  void SetFromComponents(const CRotationMatrix2& c_rotation, const CVector2& c_translation);
47 
48  void SetFromValues(Real f_value0, Real f_value1, Real f_value2,
49  Real f_value3, Real f_value4, Real f_value5,
50  Real f_value6, Real f_value7, Real f_value8);
51 
52  void SetRotationMatrix(const CRotationMatrix2& c_rotation);
53 
55 
56  void SetTranslationVector(const CVector2& c_translation);
57 
59  };
60 }
61 
62 #endif
CTransformationMatrix2(const CMatrix< 3, 3 > &c_matrix)
CRotationMatrix2 GetRotationMatrix() const
float Real
Collects all ARGoS code.
Definition: datatypes.h:39
void SetTranslationVector(const CVector2 &c_translation)
CTransformationMatrix2(const CRotationMatrix2 &c_rotation, const CVector2 &c_translation)
void SetFromMatrix(const CMatrix< 3, 3 > &c_matrix)
CTransformationMatrix2(Real f_value0, Real f_value1, Real f_value2, Real f_value3, Real f_value4, Real f_value5, Real f_value6, Real f_value7, Real f_value8)
A 2D vector class.
Definition: vector2.h:25
void SetFromValues(Real f_value0, Real f_value1, Real f_value2, Real f_value3, Real f_value4, Real f_value5, Real f_value6, Real f_value7, Real f_value8)
void SetFromComponents(const CRotationMatrix2 &c_rotation, const CVector2 &c_translation)
The namespace containing all the ARGoS related code.
Definition: ci_actuator.h:12
void SetRotationMatrix(const CRotationMatrix2 &c_rotation)