lines-intersection
v1.0.0
Published
Calculate intersection of two lines
Downloads
11
Maintainers
Readme
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
- segseg − find intersection of two segments.
- lines-intersect − check if lines intersect.
- simple-intersect − collection of various intersection checkers.
Analogs
- linestring-intersect
- line-intersect-2d
- line-segments-intersection
- line-segment-intersection
- @turf/line-intersect
- line-intersection
- line-intersect
- intersection
License
(c) 2018 Dmitry Yv. MIT License