mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +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)
|
||||
{
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user