MathPHP\LinearAlgebra\VectorAxiomsTest::testCrossProductInnerProductWithEitherVectorIsZero PHP Метод

testCrossProductInnerProductWithEitherVectorIsZero() публичный Метод

Axiom: (A x B) ⋅ A = 0 Axiom: (A x B) ⋅ B = 0 Dot product of either vector with the cross product is always zero.
    public function testCrossProductInnerProductWithEitherVectorIsZero(array $A, array $B)
    {
        $A = new Vector($A);
        $B = new Vector($B);
        $AxB = $A->crossProduct($B);
        $this->assertEquals(0, $AxB->innerProduct($A));
        $this->assertEquals(0, $AxB->innerProduct($B));
    }