npm.io
1.0.3 • Published 2 years ago

@types/polygons-intersect

Licence
MIT
Version
1.0.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/polygons-intersect

Summary

This package contains type definitions for polygons-intersect (https://github.com/DudaGod/polygons-intersect#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/polygons-intersect.

index.d.ts

/**
 * 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;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: none

Credits

These definitions were written by Konrad Klockgether.