Skip to content

Input two identical polygon will result in [] #2

@zhanghaowx

Description

@zhanghaowx
var polygonsIntersect = require('polygons-intersect'); 
var poly1 = [{x: 10, y: 10}, {x: 10, y: 30}, {x: 30, y: 30}, {x: 30, y: 10}];
console.log(polygonsIntersect(poly1, poly1));

Result will be [] but expected to be poly1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions