diff --git a/doc/changelog.dox b/doc/changelog.dox index 1c9d4560b..a5ec3dc81 100644 --- a/doc/changelog.dox +++ b/doc/changelog.dox @@ -273,6 +273,12 @@ See also: - Fixed canvas size setup in @ref Platform::EmscriptenApplication to be the same in the @ref Platform::EmscriptenApplication::Configuration::WindowFlag::Contextless "Contextless" case as for a WebGL-enabled context +- @ref SceneGraph::BasicMatrixTransformation2D, + @ref SceneGraph::BasicMatrixTransformation3D, + @ref SceneGraph::BasicRigidMatrixTransformation2D and + @ref SceneGraph::BasicRigidMatrixTransformation3D were broken in the + @ref Magnum::Double "Double" variant. To prevent such cases from happening + in the future, the whole library is now tested for both floats and doubles. @subsection changelog-latest-deprecated Deprecated APIs diff --git a/src/Magnum/SceneGraph/MatrixTransformation2D.hpp b/src/Magnum/SceneGraph/MatrixTransformation2D.hpp index 9cb09abc5..6687a36ef 100644 --- a/src/Magnum/SceneGraph/MatrixTransformation2D.hpp +++ b/src/Magnum/SceneGraph/MatrixTransformation2D.hpp @@ -39,11 +39,11 @@ namespace Magnum { namespace SceneGraph { /* These are here to avoid including Complex in MatrixTransformation2D.h */ template Object>& BasicMatrixTransformation2D::rotate(const Math::Complex& complex) { - return transform(Matrix3::from(complex.toMatrix(), {})); + return transform(Math::Matrix3::from(complex.toMatrix(), {})); } template Object>& BasicMatrixTransformation2D::rotateLocal(const Math::Complex& complex) { - return transformLocal(Matrix3::from(complex.toMatrix(), {})); + return transformLocal(Math::Matrix3::from(complex.toMatrix(), {})); } }} diff --git a/src/Magnum/SceneGraph/MatrixTransformation3D.hpp b/src/Magnum/SceneGraph/MatrixTransformation3D.hpp index 3e2acb431..916b72733 100644 --- a/src/Magnum/SceneGraph/MatrixTransformation3D.hpp +++ b/src/Magnum/SceneGraph/MatrixTransformation3D.hpp @@ -39,11 +39,11 @@ namespace Magnum { namespace SceneGraph { /* These are here to avoid including Quaternion in MatrixTransformation3D.h */ template Object>& BasicMatrixTransformation3D::rotate(const Math::Quaternion& quaternion) { - return transform(Matrix4::from(quaternion.toMatrix(), {})); + return transform(Math::Matrix4::from(quaternion.toMatrix(), {})); } template Object>& BasicMatrixTransformation3D::rotateLocal(const Math::Quaternion& quaternion) { - return transformLocal(Matrix4::from(quaternion.toMatrix(), {})); + return transformLocal(Math::Matrix4::from(quaternion.toMatrix(), {})); } }} diff --git a/src/Magnum/SceneGraph/RigidMatrixTransformation2D.hpp b/src/Magnum/SceneGraph/RigidMatrixTransformation2D.hpp index bca426722..fdf1d3998 100644 --- a/src/Magnum/SceneGraph/RigidMatrixTransformation2D.hpp +++ b/src/Magnum/SceneGraph/RigidMatrixTransformation2D.hpp @@ -39,11 +39,11 @@ namespace Magnum { namespace SceneGraph { /* These are here to avoid including Complex in RigidMatrixTransformation2D.h */ template Object>& BasicRigidMatrixTransformation2D::rotate(const Math::Complex& complex) { - return transform(Matrix3::from(complex.toMatrix(), {})); + return transform(Math::Matrix3::from(complex.toMatrix(), {})); } template Object>& BasicRigidMatrixTransformation2D::rotateLocal(const Math::Complex& complex) { - return transformLocal(Matrix3::from(complex.toMatrix(), {})); + return transformLocal(Math::Matrix3::from(complex.toMatrix(), {})); } }} diff --git a/src/Magnum/SceneGraph/RigidMatrixTransformation3D.hpp b/src/Magnum/SceneGraph/RigidMatrixTransformation3D.hpp index f0650baed..7d8d54f84 100644 --- a/src/Magnum/SceneGraph/RigidMatrixTransformation3D.hpp +++ b/src/Magnum/SceneGraph/RigidMatrixTransformation3D.hpp @@ -39,11 +39,11 @@ namespace Magnum { namespace SceneGraph { /* These are here to avoid including Quaternion in the header */ template Object>& BasicRigidMatrixTransformation3D::rotate(const Math::Quaternion& quaternion) { - return transform(Matrix4::from(quaternion.toMatrix(), {})); + return transform(Math::Matrix4::from(quaternion.toMatrix(), {})); } template Object>& BasicRigidMatrixTransformation3D::rotateLocal(const Math::Quaternion& quaternion) { - return transformLocal(Matrix4::from(quaternion.toMatrix(), {})); + return transformLocal(Math::Matrix4::from(quaternion.toMatrix(), {})); } }}