Fix some conversion warnings in unit tests.

This commit is contained in:
Gael Guennebaud
2016-05-26 17:42:12 +02:00
parent fdcad686ee
commit db62719eda
3 changed files with 6 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ template<typename QuatType> void check_slerp(const QuatType& q0, const QuatType&
Scalar theta_tot = AA(q1*q0.inverse()).angle();
if(theta_tot>Scalar(EIGEN_PI))
theta_tot = Scalar(2.*EIGEN_PI)-theta_tot;
theta_tot = Scalar(2.)*Scalar(EIGEN_PI)-theta_tot;
for(Scalar t=0; t<=Scalar(1.001); t+=Scalar(0.1))
{
QuatType q = q0.slerp(t,q1);