fixed a template type conversion bug in AngleAxis found by Pei Luo

This commit is contained in:
Bo Li 2014-03-20 22:05:40 +08:00
parent dead9085c0
commit cfd3d6ce9c

View File

@ -165,8 +165,8 @@ AngleAxis<Scalar>& AngleAxis<Scalar>::operator=(const QuaternionBase<QuatDerived
Scalar n2 = q.vec().squaredNorm();
if (n2 < NumTraits<Scalar>::dummy_precision()*NumTraits<Scalar>::dummy_precision())
{
m_angle = 0;
m_axis << 1, 0, 0;
m_angle = Scalar(0);
m_axis << Scalar(1), Scalar(0), Scalar(0);
}
else
{