Lines Matching +full:- +full:qf
13 return Q((a.coeffs() * (1.0-t) + b.coeffs() * t).normalized()); in nlerp()
26 static const Scalar one = Scalar(1) - dummy_precision<Scalar>(); in slerp_legacy()
36 Scalar scale0 = internal::sin( ( Scalar(1) - t ) * theta) / sinTheta; in slerp_legacy()
39 scale1 = -scale1; in slerp_legacy()
48 static const Scalar one = Scalar(1) - epsilon<Scalar>(); in slerp_legacy_nlerp()
57 scale0 = Scalar(1) - t; in slerp_legacy_nlerp()
66 scale0 = internal::sin( ( Scalar(1) - t ) * theta) / sinTheta; in slerp_legacy_nlerp()
69 scale1 = -scale1; in slerp_legacy_nlerp()
92 theta = /*M_PI -*/ Scalar(2)*std::asin( (a.coeffs()+b.coeffs()).norm()/2 ); in slerp_rw()
94 theta = Scalar(2)*std::asin( (a.coeffs()-b.coeffs()).norm()/2 ); in slerp_rw()
100 Scalar scale0 = (Scalar(1)-t)*sin_over_x( ( Scalar(1) - t ) * theta) / sinOverTheta; in slerp_rw()
103 scale1 = -scale1; in slerp_rw()
115 // theta = Scalar(2) * atan2((a.coeffs()-b.coeffs()).norm(),(a.coeffs()+b.coeffs()).norm()); in slerp_gael()
117 // theta = M_PI-theta; in slerp_gael()
120 theta = /*M_PI -*/ Scalar(2)*std::asin( (-a.coeffs()-b.coeffs()).norm()/2 ); in slerp_gael()
122 theta = Scalar(2)*std::asin( (a.coeffs()-b.coeffs()).norm()/2 ); in slerp_gael()
127 if(theta*theta-Scalar(6)==-Scalar(6)) in slerp_gael()
129 scale0 = Scalar(1) - t; in slerp_gael()
135 scale0 = internal::sin( ( Scalar(1) - t ) * theta) / sinTheta; in slerp_gael()
138 scale1 = -scale1; in slerp_gael()
150 typedef Quaternion<TestScalar> Qf; in main() typedef
169 Qf a, b; in main()
175 Qf c[6]; in main()
190 Qf refc = cr.cast<TestScalar>(); in main()
199 err[0] = (cr.coeffs()-refc.cast<RefScalar>().coeffs()).norm(); in main()
203 err[k+1] = (c[k].coeffs()-refc.coeffs()).norm(); in main()