From a6c06ad980fe9af7d38533d3996c775dea18cad8 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 22 Nov 2021 19:31:08 +0100 Subject: [PATCH] tone down the matrix ops tests a bit --- Tests/NumberTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/NumberTests.cs b/Tests/NumberTests.cs index 8da134d..0e6a629 100644 --- a/Tests/NumberTests.cs +++ b/Tests/NumberTests.cs @@ -43,7 +43,7 @@ namespace Tests { } [Test] - public void TestMatrixOps([Range(0.5F, 2, 0.5F)] float scale, [Range(-1, 1, 0.5F)] float rotationX, [Range(-1, 1, 0.5F)] float rotationY, [Range(-1, 1, 0.5F)] float rotationZ) { + public void TestMatrixOps([Range(0.5F, 2, 1)] float scale, [Range(-0.5F, 0.5F, 1)] float rotationX, [Range(-0.5F, 0.5F, 1)] float rotationY, [Range(-0.5F, 0.5F, 0.5F)] float rotationZ) { var rotation = Matrix.CreateRotationX(rotationX) * Matrix.CreateRotationY(rotationY) * Matrix.CreateRotationZ(rotationZ); var matrix = rotation * Matrix.CreateScale(scale, scale, scale); Assert.IsTrue(matrix.Scale().Equals(new Vector3(scale), 0.001F), $"{matrix.Scale()} does not equal {new Vector2(scale)}");