blob: 221599448d45f71cf3075a2f5ff370af3f061a61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import type { Coord2D, Dimension2D } from '../interfaces';
export interface BoxedEntry {
id: string;
dimension: Dimension2D;
center: Coord2D;
}
export interface RefreshingCollisionFinderBehavior {
clear(): void;
insert(boxedEntry: BoxedEntry): void;
getNeighborIds(boxedEntry: BoxedEntry): Set<string>;
setTopLeft(topLeft: Coord2D): void;
setDimension(dimension: Dimension2D): void;
}
|