ARGoS  3
A parallel, multi-engine simulator for swarm robotics
transformationmatrix3.h
Go to the documentation of this file.
1 
9 #ifndef TRANSFORMATION_MATRIX3_H
10 #define TRANSFORMATION_MATRIX3_H
11 
12 namespace argos {
13  class CVector3;
14  class CRotationMatrix3;
15 }
16 
17 #include "squarematrix.h"
18 
19 namespace argos {
20 
22 
23  public:
24 
27  }
28 
30  SetFromMatrix(c_matrix);
31  }
32 
33  CTransformationMatrix3(const CRotationMatrix3& c_rotation, const CVector3& c_translation) : CSquareMatrix<4>() {
34  SetFromComponents(c_rotation, c_translation);
35  }
36 
37  CTransformationMatrix3(Real f_value0, Real f_value1, Real f_value2, Real f_value3,
38  Real f_value4, Real f_value5, Real f_value6, Real f_value7,
39  Real f_value8, Real f_value9, Real f_value10, Real f_value11,
40  Real f_value12, Real f_value13, Real f_value14, Real f_value15) : CSquareMatrix<4>() {
41  SetFromValues(f_value0, f_value1, f_value2, f_value3,
42  f_value4, f_value5, f_value6, f_value7,
43  f_value8, f_value9, f_value10, f_value11,
44  f_value12, f_value13, f_value14, f_value15);
45  }
46 
47  void SetFromMatrix(const CMatrix<4,4>& c_matrix);
48 
49  void SetFromComponents(const CRotationMatrix3& c_rotation, const CVector3& c_translation);
50 
51  void SetFromValues(Real f_value0, Real f_value1, Real f_value2, Real f_value3,
52  Real f_value4, Real f_value5, Real f_value6, Real f_value7,
53  Real f_value8, Real f_value9, Real f_value10, Real f_value11,
54  Real f_value12, Real f_value13, Real f_value14, Real f_value15);
55 
56  void SetRotationMatrix(const CRotationMatrix3& c_rotation);
57 
58  const CRotationMatrix3 GetRotationMatrix() const;
59 
60  void SetTranslationVector(const CVector3& c_translation);
61 
62  const CVector3 GetTranslationVector() const;
63 
64  CVector3 operator*(const CVector3& c_vector) const;
65  };
66 }
67 
68 #endif
argos::CTransformationMatrix3::GetTranslationVector
const CVector3 GetTranslationVector() const
Definition: transformationmatrix3.cpp:106
argos
The namespace containing all the ARGoS related code.
Definition: ci_actuator.h:12
argos::CVector3
A 3D vector class.
Definition: vector3.h:29
argos::CSquareMatrix
Definition: squarematrix.h:17
argos::CTransformationMatrix3::SetFromMatrix
void SetFromMatrix(const CMatrix< 4, 4 > &c_matrix)
Definition: transformationmatrix3.cpp:32
argos::CTransformationMatrix3::operator*
CVector3 operator*(const CVector3 &c_vector) const
Definition: transformationmatrix3.cpp:113
argos::CTransformationMatrix3::CTransformationMatrix3
CTransformationMatrix3(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, Real f_value9, Real f_value10, Real f_value11, Real f_value12, Real f_value13, Real f_value14, Real f_value15)
Definition: transformationmatrix3.h:37
argos::CTransformationMatrix3::CTransformationMatrix3
CTransformationMatrix3(const CRotationMatrix3 &c_rotation, const CVector3 &c_translation)
Definition: transformationmatrix3.h:33
argos::CTransformationMatrix3::SetTranslationVector
void SetTranslationVector(const CVector3 &c_translation)
Definition: transformationmatrix3.cpp:97
argos::CTransformationMatrix3
Definition: transformationmatrix3.h:21
argos::CTransformationMatrix3::CTransformationMatrix3
CTransformationMatrix3()
Definition: transformationmatrix3.h:25
argos::CTransformationMatrix3::SetFromValues
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, Real f_value9, Real f_value10, Real f_value11, Real f_value12, Real f_value13, Real f_value14, Real f_value15)
Definition: transformationmatrix3.cpp:54
argos::CTransformationMatrix3::CTransformationMatrix3
CTransformationMatrix3(const CMatrix< 4, 4 > &c_matrix)
Definition: transformationmatrix3.h:29
argos::CMatrix
Definition: matrix.h:20
argos::CTransformationMatrix3::SetRotationMatrix
void SetRotationMatrix(const CRotationMatrix3 &c_rotation)
Definition: transformationmatrix3.cpp:79
argos::CRotationMatrix3
Definition: rotationmatrix3.h:21
argos::CTransformationMatrix3::GetRotationMatrix
const CRotationMatrix3 GetRotationMatrix() const
Definition: transformationmatrix3.cpp:88
argos::CTransformationMatrix3::SetFromComponents
void SetFromComponents(const CRotationMatrix3 &c_rotation, const CVector3 &c_translation)
Definition: transformationmatrix3.cpp:18
Real
float Real
Collects all ARGoS code.
Definition: datatypes.h:39
argos::CSquareMatrix< 4 >::SetIdentityMatrix
void SetIdentityMatrix()
Definition: squarematrix.h:22
squarematrix.h