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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    12
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    12

Package Sidebar

Install

npm i lines-intersection

Weekly Downloads

12

Version

1.0.0

License

MIT

Unpacked Size

5.47 kB

Total Files

7

Last publish

Collaborators

  • dfcreative