1.0.2 • Published 7 months ago

@types/robust-segment-intersect v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Installation

npm install --save @types/robust-segment-intersect

Summary

This package contains type definitions for robust-segment-intersect (https://github.com/mikolalysenko/robust-segment-intersect).

Details

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

index.d.ts

// Type definitions for robust-segment-intersect 1.0
// Project: https://github.com/mikolalysenko/robust-segment-intersect
// Definitions by: masx200 <https://github.com/masx200>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace segmentsIntersect {
    type Coord = [number, number];
}

/**
 * Test if the closed line segment `[firstStart, firstEnd]` intersects
 * the closed line segment `[secondStart, secondEnd]`
 * @param firstStart An end point of the first line
 * @param firstEnd An end point of the first line
 * @param secondStart An end point of the second line
 * @param secondEnd An end point of the second line
 * @returns Whether the lines intersect
 */
declare function segmentsIntersect(
    firstStart: segmentsIntersect.Coord,
    firstEnd: segmentsIntersect.Coord,
    secondStart: segmentsIntersect.Coord,
    secondEnd: segmentsIntersect.Coord,
): boolean;

export = segmentsIntersect;

Additional Details

  • Last updated: Sun, 24 Apr 2022 16:01:38 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by masx200.

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

2 years ago