mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 11:19:02 +08:00
Silence double-promotion warning
This commit is contained in:
parent
595cae9b09
commit
4713465eef
@ -184,7 +184,7 @@ inline void glRotate(const Rotation2D<float>& rot)
|
|||||||
}
|
}
|
||||||
inline void glRotate(const Rotation2D<double>& rot)
|
inline void glRotate(const Rotation2D<double>& rot)
|
||||||
{
|
{
|
||||||
glRotated(rot.angle()*180.0/EIGEN_PI, 0.0, 0.0, 1.0);
|
glRotated(rot.angle()*180.0/double(EIGEN_PI), 0.0, 0.0, 1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename Derived> void glRotate(const RotationBase<Derived,3>& rot)
|
template<typename Derived> void glRotate(const RotationBase<Derived,3>& rot)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user