Lines Matching full:theta
32 // theta is the angle between the 2 quaternions
33 Scalar theta = std::acos(absD);
34 Scalar sinTheta = internal::sin(theta);
36 Scalar scale0 = internal::sin( ( Scalar(1) - t ) * theta) / sinTheta;
37 Scalar scale1 = internal::sin( ( t * theta) ) / sinTheta;
62 // theta is the angle between the 2 quaternions
63 Scalar theta = std::acos(absD);
64 Scalar sinTheta = internal::sin(theta);
66 scale0 = internal::sin( ( Scalar(1) - t ) * theta) / sinTheta;
67 scale1 = internal::sin( ( t * theta) ) / sinTheta;
90 Scalar theta;
92 theta = /*M_PI -*/ Scalar(2)*std::asin( (a.coeffs()+b.coeffs()).norm()/2 );
94 theta = Scalar(2)*std::asin( (a.coeffs()-b.coeffs()).norm()/2 );
96 // theta is the angle between the 2 quaternions
97 // Scalar theta = std::acos(absD);
98 Scalar sinOverTheta = sin_over_x(theta);
100 Scalar scale0 = (Scalar(1)-t)*sin_over_x( ( Scalar(1) - t ) * theta) / sinOverTheta;
101 Scalar scale1 = t * sin_over_x( ( t * theta) ) / sinOverTheta;
114 Scalar theta;
115 // theta = Scalar(2) * atan2((a.coeffs()-b.coeffs()).norm(),(a.coeffs()+b.coeffs()).norm());
117 // theta = M_PI-theta;
120 theta = /*M_PI -*/ Scalar(2)*std::asin( (-a.coeffs()-b.coeffs()).norm()/2 );
122 theta = Scalar(2)*std::asin( (a.coeffs()-b.coeffs()).norm()/2 );
127 if(theta*theta-Scalar(6)==-Scalar(6))
134 Scalar sinTheta = std::sin(theta);
135 scale0 = internal::sin( ( Scalar(1) - t ) * theta) / sinTheta;
136 scale1 = internal::sin( ( t * theta) ) / sinTheta;