gintersect
Finds intersection between two lines. This is JavaScript adaptation of Mukesh Prasad's work from Grapchis Gem II book. It is supposed to be very fast.
usage
var intersect = ;var intersection =;console;// prints {x: 0, y: 0} - intersection point of two segments
If no intersection found return value is falsy:
var parallel =;console;// prints null - two parallel segments do not intersect.
install
With npm do:
npm install gintersect
license
MIT