2023-08-25 18:48:17 -04:00
|
|
|
import type { Coord2D, Dimension2D } from '../interfaces';
|
2023-08-18 00:42:09 -04:00
|
|
|
|
|
|
|
export interface BoxedEntry {
|
|
|
|
id: string;
|
|
|
|
dimension: Dimension2D;
|
|
|
|
center: Coord2D;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface RefreshingCollisionFinderBehavior {
|
2023-08-25 18:48:17 -04:00
|
|
|
clear(): void;
|
|
|
|
insert(boxedEntry: BoxedEntry): void;
|
|
|
|
getNeighborIds(boxedEntry: BoxedEntry): Set<string>;
|
|
|
|
setTopLeft(topLeft: Coord2D): void;
|
2023-08-18 00:42:09 -04:00
|
|
|
}
|