예제 #1
0
        public void TestGetRotationMatrix()
        {
            var testResult = LinearEquation.GetRotationMatrix(62.3);

            Assert.IsTrue(System.Math.Abs(testResult[0, 0] - 0.4648420) < 0.00001);
            Assert.IsTrue(System.Math.Abs(testResult[0, 1] - -0.8853936) < 0.00001);
            Assert.IsTrue(System.Math.Abs(testResult[1, 0] - 0.8853936) < 0.00001);
            Assert.IsTrue(System.Math.Abs(testResult[1, 1] - 0.4648420) < 0.00001);
        }