From e75c7639e77b51932d3467587f3a1f023816b02a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 17 Feb 2019 19:38:31 +0100 Subject: [PATCH] Math: test Matrix[34]::scalingSquared(). --- src/Magnum/Math/Test/Matrix3Test.cpp | 1 + src/Magnum/Math/Test/Matrix4Test.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Magnum/Math/Test/Matrix3Test.cpp b/src/Magnum/Math/Test/Matrix3Test.cpp index cee24bf05..c68dbd2b3 100644 --- a/src/Magnum/Math/Test/Matrix3Test.cpp +++ b/src/Magnum/Math/Test/Matrix3Test.cpp @@ -525,6 +525,7 @@ void Matrix3Test::scalingPart() { Matrix3::scaling({0.5f, 3.5f}); CORRADE_COMPARE(translationRotationScaling.scaling(), (Vector2{0.5f, 3.5f})); + CORRADE_COMPARE(translationRotationScaling.scalingSquared(), (Vector2{0.25f, 12.25f})); } void Matrix3Test::uniformScalingPart() { diff --git a/src/Magnum/Math/Test/Matrix4Test.cpp b/src/Magnum/Math/Test/Matrix4Test.cpp index 8f40e804b..f6a46334d 100644 --- a/src/Magnum/Math/Test/Matrix4Test.cpp +++ b/src/Magnum/Math/Test/Matrix4Test.cpp @@ -713,6 +713,7 @@ void Matrix4Test::scalingPart() { Matrix4::scaling({0.5f, 3.5f, 1.2f}); CORRADE_COMPARE(translationRotationScaling.scaling(), (Vector3{0.5f, 3.5f, 1.2f})); + CORRADE_COMPARE(translationRotationScaling.scalingSquared(), (Vector3{0.25f, 12.25f, 1.44f})); } void Matrix4Test::uniformScalingPart() {