UNPKG

bos-intersections

Version:

Bentley-Ottman segments intersection algorithm

10 lines (8 loc) 208 B
var Point = function (coords, type, segmentID) { this.segmentID = segmentID; this.x = coords[0]; this.y = coords[1]; this.type = type; this.segments = []; } module.exports = Point;