npm.io
1.0.2 • Published 2 years ago

@types/polygon-selfintersect

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

Installation

npm install --save @types/polygon-selfintersect

Summary

This package contains type definitions for polygon-selfintersect (https://github.com/kmcs/polygon-selfintersect).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/polygon-selfintersect.

index.d.ts

/**
 * Find self-intersections of the polygon.
 *
 * @param points Array of the [x, y] points making up the polygon.
 * @param findAllLines Find all the intersection lines.
 * @return Returns `true` if a self-intersection has been found.
 */
export function findSelfIntersections(points: readonly number[][], findAllLines?: boolean): boolean;

/**
 * Get the self-intersection lines.
 */
export function getSelfIntersectLines(): number[][];

Additional Details

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

Credits

These definitions were written by Russ McKay.