lines-intersection

Calculate intersection of two lines

lines-intersection

Calculate intersection of two lines.

const x = require('lines-intersection')

x(0,0, 1,1, 1,0, 0,1) // [.5, .5]
x([0,0, 1,1], [1,0, 0,1]) // [.5, .5]
x([0,0], [1,1], [1,0], [0,1]) // [.5, .5]

Related

Analogs

License

(c) 2018 Dmitry Yv. MIT License

HomePage

https://github.com/dy/lines-intersection#readme

Repository

git+https://github.com/dy/lines-intersection.git