line-intersect-2d
A simple library to get intersection of 2 dimensional lines
Installation
$ npm install --save line-intersect-2d
Usage
var lineIntersect = ;var p1 = 00;var p2 = 050;var p3 = 105;var p4 = 11;var tol = 0000006; // The tolerance to check for equality. It is 0.000005 by defaultvar allowExtend = false; // Treat it as a line segmentvar b = lineIntersect; // b = null, since allow extend is false.var allowExtend = true; // Treat it as an infinite linevar b = lineIntersect; // b = [1,0], since allow extend is true.