min-bounding-rectangle
Version:
Minimum bounding rectangle implementation in JavaScript. Uses `concaveman` and `mathjs` as dependencies.
18 lines (17 loc) • 1.36 kB
TypeScript
declare const matrix: {
(format?: import('mathjs').MatrixStorageFormat): import('mathjs').Matrix;
(data: import('mathjs').MathCollection | string[], format?: import('mathjs').MatrixStorageFormat, dataType?: string): import('mathjs').Matrix;
<T extends import('mathjs').MathScalarType>(data: import('mathjs').MathCollection<T>, format?: import('mathjs').MatrixStorageFormat, dataType?: string): import('mathjs').Matrix<T>;
}, transpose: <T extends import('mathjs').MathCollection>(x: T) => T, multiply: {
<T extends import('mathjs').Matrix>(x: T, y: import('mathjs').MathType): import('mathjs').Matrix;
<T extends import('mathjs').Matrix>(x: import('mathjs').MathType, y: T): import('mathjs').Matrix;
<T extends import('mathjs').MathArray>(x: T, y: T[]): T;
<T extends import('mathjs').MathArray>(x: T[], y: T): T;
<T extends import('mathjs').MathArray>(x: T[], y: T[]): T[];
<T extends import('mathjs').MathArray>(x: T, y: T): import('mathjs').MathScalarType;
(x: import('mathjs').Unit, y: import('mathjs').Unit): import('mathjs').Unit;
(x: number, y: number): number;
(x: import('mathjs').MathType, y: import('mathjs').MathType, ...values: import('mathjs').MathType[]): import('mathjs').MathType;
<T extends import('mathjs').MathType>(x: T, y: T, ...values: T[]): T;
};
export { matrix, transpose, multiply };