20 for (
int i = 0; i<4; i++)
22 for (
int j = 0; j<4; j++)
31 (*this)(0,0) = a[2]*a[4];
32 (*this)(0,1) = a[1]*a[3]*a[4] + a[0]*a[5];
33 (*this)(0,2) = -a[0]*a[3]*a[4] + a[1]*a[5];
34 (*this)(1,0) = -a[2]*a[5];
35 (*this)(1,1) = -a[1]*a[3]*a[5] + a[0]*a[4];
36 (*this)(1,2) = a[0]*a[3]*a[5] + a[1]*a[4];
38 (*this)(2,1) = -a[1]*a[2];
39 (*this)(2,2) = a[0]*a[2];
44 double c = cos(a)-cos(b);
45 double s = sin(a)-sin(b);
46 return c*c+s*s < 0.0001;
51 const double pi = 3.141592653589793238;
52 double f1 = asin((*
this)(2,0));
54 double o1 = asin(-(*
this)(2,1)/cos(f1));
56 double o3 = acos((*
this)(2,2)/cos(f1));
62 double k1 = acos((*
this)(0,0)/cos(f1));
64 double k3 = asin(-(*
this)(1,0)/cos(f1));
std::istream & operator>>(std::istream &i, a_pos2 &m)
bool angle_egal(double a, double b)