-
-
Notifications
You must be signed in to change notification settings - Fork 200
Open
Description
Hello,
Unfortunately, the Line::intersectsLine() method doesn't always work correctly. Try this test:
<?php
declare(strict_types=1);
require 'vendor/autoload.php';
use Location\Coordinate;
use Location\Line;
$line1 = new Line(
new Coordinate(0.0, 0.0),
new Coordinate(0.0, 2.0)
);
$line2 = new Line(
new Coordinate(2.0, 2.0),
new Coordinate(0.0, 10.0)
);
if ($line1->intersectsLine($line2)) {
echo 'Line::intersectsLine() is buggy!'.PHP_EOL;
}
Metadata
Metadata
Assignees
Labels
No labels