示例#1
0
        public void TestFromColumns()
        {
            var v1 = new Vector3D(1, 2, 3);
            var v2 = new Vector3D(4, 5, 6);
            var v3 = new Vector3D(7, 8, 9);

            var m = Matrix3D.FromColumns(v1, v2, v3);

            Assert.IsTrue(Matrix3D.AreEqual(m, new Matrix3D(new float[, ] {
                { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 }
            }).Transpose()));
        }