protected function pythagorus( PointInterface $a, PointInterface $b )
    {
        list( $ax, $ay ) = $a->getCoordinates();
        list( $bx, $by ) = $b->getCoordinates();
        return pow($ax - $bx, 2) + pow($ay - $by, 2);
    }
protected function pythagorus( PointInterface $a, PointInterface $b )
    {
        list( $ax, $ay ) = $a->getCoordinates();
        list( $bx, $by ) = $b->getCoordinates();
        return pow($ax - $bx, 2) + pow($ay - $by, 2);
    }
protected function pythagorus ( PointInterface $ a , PointInterface $ b ) { list ( $ ax , $ ay ) = $ a -> getCoordinates ( ) ; list ( $ bx , $ by ) = $ b -> getCoordinates ( ) ; return pow ( $ ax - $ bx , 2 ) + pow ( $ ay - $ by , 2 ) ; }
Calculate Pythagoras distance.

Pythagorus as described as "a^2 + b^2 = c^2"

@param PointInterface $a First point
@param PointInterface $b Last point

@return float
Calculate Pythagoras distance .