public static function getLinesIntersection(Line $line1, Line $line2)
    {
        $div = ($line1->getSlope() - $line2->getSlope());
        $x = ($div!=0 ?
            (($line2->getYIntercept() - $line1->getYIntercept()) / $div) : ($line2->getYIntercept() - $line1->getYIntercept()));
        $y = $line1->getOrdinateByAbscissa($x);
        return new Point($x, $y);
    }