lines-intersection

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i lines-intersection

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

5.47 kB

Total Files

7

Last publish

Collaborators

  • dfcreative