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

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

Axiom: projᵇA ⋅ perpᵇA = 0 Dot product of proj and perp of A on B is 0
    public function testProjPerpDotProductEqualsZero(array $A, array $B)
    {
        $A = new Vector($A);
        $B = new Vector($B);
        $projᵇA = $A->projection($B);
        $perpᵇA = $A->perp($B);
        $projᵇA⋅perpᵇA = $projᵇA->dotProduct($perpᵇA);
        $this->assertEquals(0, $projᵇA⋅perpᵇA);
    }