DefinitelyTyped/types/polygons-intersect/index.d.ts
2019-03-21 10:40:30 +01:00

15 lines
493 B
TypeScript

// Type definitions for polygons-intersect 1.0
// Project: https://github.com/DudaGod/polygons-intersect#readme
// Definitions by: Konrad Klockgether <https://github.com/Nielio>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* Finds all points where the polygons intersect each other.
*/
declare function intersection(
poly1: Array<{ x: number, y: number }>,
poly2: Array<{ x: number, y: number }>
): Array<{ x: number, y: number }>;
export = intersection;