Cross() public method

public Cross ( Matrix by ) : Vector
by Matrix
return Vector
コード例 #1
0
ファイル: VectorTest.cs プロジェクト: smartleos/itextsharp
        public void TestCrossVector()
        {
            Vector v = new Vector(2, 3, 4);
            Matrix m = new Matrix(5, 6, 7, 8, 9, 10);
            Vector shouldBe = new Vector(67, 76, 4);

            Vector rslt = v.Cross(m);
            Assert.AreEqual(shouldBe, rslt);
        }