You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
622 B
16 lines
622 B
import { XYCoord } from '../interfaces';
|
|
export declare type EqualityCheck<T> = (a: T, b: T) => boolean;
|
|
export declare const strictEquality: <T>(a: T, b: T) => boolean;
|
|
/**
|
|
* Determine if two cartesian coordinate offsets are equal
|
|
* @param offsetA
|
|
* @param offsetB
|
|
*/
|
|
export declare function areCoordsEqual(offsetA: XYCoord | null | undefined, offsetB: XYCoord | null | undefined): boolean;
|
|
/**
|
|
* Determines if two arrays of items are equal
|
|
* @param a The first array of items
|
|
* @param b The second array of items
|
|
*/
|
|
export declare function areArraysEqual<T>(a: T[], b: T[], isEqual?: EqualityCheck<T>): boolean;
|