npm.io
1.0.3 • Published 2 years ago

@types/smallest-enclosing-circle

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

Installation

npm install --save @types/smallest-enclosing-circle

Summary

This package contains type definitions for smallest-enclosing-circle (https://github.com/rowanwins/smallest-enclosing-circle#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/smallest-enclosing-circle.

index.d.ts

export as namespace smallestEnclosingCircle;

interface Point {
    x: number;
    y: number;
}

interface Circle extends Point {
    r: number;
}

declare function enclosingCircle(points: readonly Point[]): Circle;

export = enclosingCircle;

Additional Details

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

Credits

These definitions were written by Rajas Paranjpe.