예제 #1
0
        public void TransposeStatic_ByRef()
        {
            var input     = GetTestMatrix();
            var inputSimd = (NMatrix4d)input;

            Matrix4d  expected;
            NMatrix4d actual;

            Matrix4d.Transpose(ref input, out expected);
            NMatrix4d.Transpose(ref inputSimd, out actual);
            Asserts.AreEqual(expected, actual, "transpose out/ref");
        }
예제 #2
0
        public void TransposeStatic()
        {
            var input     = GetTestMatrix();
            var inputSimd = (NMatrix4d)input;

            var expected = Matrix4d.Transpose(input);
            var actual   = NMatrix4d.Transpose(inputSimd);

            Asserts.AreEqual(expected, actual, "transpose");

            input     = GetTestMatrix();
            inputSimd = (NMatrix4d)input;
            Matrix4d.Transpose(ref input, out expected);
            NMatrix4d.Transpose(ref inputSimd, out actual);
            Asserts.AreEqual(expected, actual, "transpose out/ref");
        }