Skip to content

Commit

Permalink
added a note
Browse files Browse the repository at this point in the history
  • Loading branch information
anvaka committed Oct 7, 2018
1 parent eb21ca8 commit 049ca4e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/brute.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ export default function brute(lines, options) {
}

function intersectSegments(a, b) {
// Note: this is almost the same as geom.intersectSegments()
// The main difference is that we don't have a pre-computed
// value for dx/dy on the segments.
// https://stackoverflow.com/a/1968345/125351
var aStart = a.from, bStart = b.from;
var p0_x = aStart.x, p0_y = aStart.y,
Expand Down

0 comments on commit 049ca4e

Please sign in to comment.