Go to
the documentation of this file.
00001
00004 #ifndef FBXFILESDK_KFBXMATH_KFBXDUALQUATERNION_H
00005 #define FBXFILESDK_KFBXMATH_KFBXDUALQUATERNION_H
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 #include <fbxfilesdk/fbxfilesdk_def.h>
00042
00043 #include <fbxfilesdk/kfbxmath/kfbxvector4.h>
00044 #include <fbxfilesdk/kfbxmath/kfbxquaternion.h>
00045
00046 #include <fbxfilesdk/fbxfilesdk_nsbegin.h>
00047
00053 class KFBX_DLL KFbxDualQuaternion
00054 {
00055
00056 public:
00057
00062
00064 KFbxDualQuaternion();
00065
00070 KFbxDualQuaternion(const KFbxQuaternion& pV1, const KFbxQuaternion& pV2);
00071
00075 KFbxDualQuaternion(const KFbxDualQuaternion& pV);
00076
00081 KFbxDualQuaternion(const KFbxQuaternion& pRotation, const KFbxVector4& pTranslation);
00082
00093 KFbxDualQuaternion(double pX1, double pY1, double pZ1, double pW1, double pX2, double pY2, double pZ2, double pW2);
00094
00096 ~KFbxDualQuaternion();
00097
00099
00104
00108 KFbxDualQuaternion& operator=(const KFbxDualQuaternion& pDualQuaternion);
00109
00120 void Set(double pX1, double pY1, double pZ1, double pW1, double pX2, double pY2, double pZ2, double pW2);
00121
00125 KFbxQuaternion& GetFirstQuaternion();
00126
00130 KFbxQuaternion& GetSecondQuaternion();
00131
00135 const KFbxQuaternion& GetFirstQuaternion() const;
00136
00140 const KFbxQuaternion& GetSecondQuaternion() const;
00141
00145 KFbxQuaternion GetRotation() const;
00146
00152 KFbxVector4 GetTranslation() const;
00153
00155
00160
00166 KFbxDualQuaternion operator+(double pValue) const;
00167
00173 KFbxDualQuaternion operator-(double pValue) const;
00174
00180 KFbxDualQuaternion operator*(double pValue) const;
00181
00187 KFbxDualQuaternion operator/(double pValue) const;
00188
00194 KFbxDualQuaternion& operator+=(double pValue);
00195
00201 KFbxDualQuaternion& operator-=(double pValue);
00202
00208 KFbxDualQuaternion& operator*=(double pValue);
00209
00215 KFbxDualQuaternion& operator/=(double pValue);
00216
00218
00223
00227 KFbxDualQuaternion operator-() const;
00228
00234 KFbxDualQuaternion operator+(const KFbxDualQuaternion& pDualQuaternion) const;
00235
00241 KFbxDualQuaternion operator-(const KFbxDualQuaternion& pDualQuaternion) const;
00242
00248 KFbxDualQuaternion operator*(const KFbxDualQuaternion& pDualQuaternion) const;
00249
00255 KFbxDualQuaternion operator/(const KFbxDualQuaternion& pDualQuaternion) const;
00256
00262 KFbxDualQuaternion& operator+=(const KFbxDualQuaternion& pDualQuaternion);
00263
00269 KFbxDualQuaternion& operator-=(const KFbxDualQuaternion& pDualQuaternion);
00270
00276 KFbxDualQuaternion& operator*=(const KFbxDualQuaternion& pDualQuaternion);
00277
00283 KFbxDualQuaternion& operator/=(const KFbxDualQuaternion& pDualQuaternion);
00284
00290 KFbxDualQuaternion operator*(const KFbxVector4 pVector) const;
00291
00296 KFbxDualQuaternion Product(const KFbxDualQuaternion& pDualQuaternion) const;
00297
00300 void Normalize();
00301
00305 void Inverse();
00306
00310 KFbxVector4 Deform(KFbxVector4& pPoint);
00311
00313
00319
00322 void Conjugate();
00323
00326 void Dual();
00327
00330 void DualConjugate();
00331
00333
00338
00343 bool operator==(const KFbxDualQuaternion & pV) const;
00344
00349 bool operator!=(const KFbxDualQuaternion & pV) const;
00350
00352
00353
00355
00356
00357
00358
00359
00360
00362
00363
00364 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00365 private:
00370
00373 KFbxQuaternion mQ1;
00374
00377 KFbxQuaternion mQ2;
00378
00380 #endif //doxygen
00381
00382 };
00383
00384
00385
00386 #include <fbxfilesdk/fbxfilesdk_nsend.h>
00387
00388 #endif // FBXFILESDK_KFBXMATH_KFBXDUALQUATERNION_H
00389