mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
15 lines
493 B
TypeScript
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;
|