1.0.0 • Published 6 years ago

lines-intersection v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

lines-intersection experimental Build Status

Calculate intersection of two lines.

npm install lines-intersection

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