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);
    }