Lines Matching refs:coeffs
13 return Q((a.coeffs() * (1.0-t) + b.coeffs() * t).normalized());
41 return Q(scale0 * a.coeffs() + scale1 * b.coeffs());
72 return Q(scale0 * a.coeffs() + scale1 * b.coeffs());
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 );
105 return Quaternion<Scalar>(scale0 * a.coeffs() + scale1 * b.coeffs());
115 // theta = Scalar(2) * atan2((a.coeffs()-b.coeffs()).norm(),(a.coeffs()+b.coeffs()).norm());
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 );
141 return Quaternion<Scalar>(scale0 * a.coeffs() + scale1 * b.coeffs());
170 a.coeffs().setRandom();
172 b.coeffs().setRandom();
199 err[0] = (cr.coeffs()-refc.cast<RefScalar>().coeffs()).norm();
203 err[k+1] = (c[k].coeffs()-refc.coeffs()).norm();
221 a.coeffs().setRandom();
223 b.coeffs().setRandom();