Esempio n. 1
0
        public void QuickTransform()
        {
            OpenTK.Matrix4 A = new OpenTK.Matrix4();
            A[0, 0] = 16; A[0, 1] = 15; A[0, 2] = 14; A[0, 3] = 13;
            A[1, 0] = 12; A[1, 1] = 11; A[1, 2] = 10; A[1, 3] = 9;
            A[2, 0] = 8;  A[2, 1] = 7;  A[2, 2] = 6;  A[2, 3] = 5;

            OpenTK.Vector3 x        = new OpenTK.Vector3(1, 5, 9);
            OpenTK.Vector3 b        = A.QuickTransform(ref x);
            OpenTK.Vector3 expected = new OpenTK.Vector3(230, 166, 102);
            Assert.IsTrue(expected == b);
        }