00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef CEYLAN_HOMOGENEOUS_MATRIX_3_H_
00028 #define CEYLAN_HOMOGENEOUS_MATRIX_3_H_
00029
00030
00031 #include "CeylanMatrix3.h"
00032 #include "CeylanLinear.h"
00033
00034
00035 #include <string>
00036
00037
00038 namespace Ceylan
00039 {
00040
00041
00042 namespace Maths
00043 {
00044
00045
00046 namespace Linear
00047 {
00048
00049
00050
00051
00052 class Vector2 ;
00053
00054
00055
00056 class Matrix2 ;
00057
00058
00059
00060 class Tripoint ;
00061
00062
00063
00064 class Vector3 ;
00065
00066
00067
00106 class CEYLAN_DLL HomogeneousMatrix3 : public Matrix3
00107 {
00108
00109
00110
00116 CEYLAN_DLL friend HomogeneousMatrix3 operator * (
00117 const HomogeneousMatrix3 & hm1,
00118 const HomogeneousMatrix3 & hm2 ) ;
00119
00120
00121
00131 CEYLAN_DLL friend Vector2 operator * (
00132 const HomogeneousMatrix3 & hm, const Vector2 & v ) ;
00133
00134
00135
00136
00137 public:
00138
00139
00140
00151 HomogeneousMatrix3(
00152 const Maths::Linear::Matrix2 & r,
00153 const Maths::Linear::Vector2 & v ) ;
00154
00155
00156
00166 HomogeneousMatrix3( AngleInDegrees angle,
00167 const Maths::Linear::Vector2 & v ) ;
00168
00169
00170
00183 explicit HomogeneousMatrix3(
00184 Real r0 = 0, Real r1 = 0, Real r2 = 0,
00185 Real r3 = 0, Real t0 = 0, Real t1 = 0 ) ;
00186
00187
00188
00200
00201
00202
00203
00204
00205
00206
00208 virtual ~HomogeneousMatrix3() throw() ;
00209
00210
00211
00212
00225 virtual const std::string toString(
00226 VerbosityLevels level = high ) const ;
00227
00228
00229
00234 static const MatrixIndex Dimensions = 3 ;
00235
00236
00237
00244
00245
00246
00247
00248
00249
00250
00251 protected:
00252
00253
00254
00260 virtual void setBottomRow() ;
00261
00262
00263
00271 virtual void setTranslationVector( const Vector2 & v ) ;
00272
00273
00274
00282 virtual void setRotationMatrix( const Matrix2 & m ) ;
00283
00284
00285
00298 virtual void setInCanonicalForm() ;
00299
00300
00301 } ;
00302
00303 }
00304
00305 }
00306
00307 }
00308
00309
00310
00311 #endif // CEYLAN_HOMOGENEOUS_MATRIX_3_H_
00312