Allink
v0.1
|
00001 #ifndef MATEMATICAQUADRI_H 00002 #define MATEMATICAQUADRI_H 00003 #include <stdio.h> 00004 #include <stdlib.h> 00005 #include <math.h> 00007 class Quadri{ 00008 private: 00009 public: 00011 Quadri(); 00013 Quadri(double *Axis,double Angle); 00015 Quadri(double Ang1,double Ang2,double Ang3); 00017 Quadri(double ww,double xx,double yy,double zz); 00019 double *Axis(); 00021 double x; 00023 double y; 00025 double z; 00027 double w; 00029 double Norm(); 00031 double NormInv(double *Vett); 00033 double Sqr(); 00035 double Normalize(); 00037 double Normalize(double *Vett); 00039 double Angle(); 00041 void Prod(Quadri q); 00043 Quadri Prod(Quadri q,Quadri p); 00045 Quadri GetConj(); 00047 void Inv(); 00049 void Matrix4x4(double *M); 00051 void Matrix3x3(double *M); 00053 void RotMatrix(double *data,int dim); 00055 void Basis(double a,double b,double c,double d,double *Matr); 00057 void Conj(); 00059 void PrintMatrix(double *M); 00061 Quadri operator* (const Quadri &rq) const; 00063 double *operator* (const double *Vet) const; 00065 Quadri operator= (const Quadri &rq) const; 00066 }; 00067 #endif //MATEMATICA_H