aabb-tree
Version:
Basic implementation of the AABB-Tree (Axis Aligned Box Bounding Tree)
12 lines (11 loc) • 319 B
TypeScript
import Vector2 from '../Vector2';
import AABB from '../AABB';
import IAABBShape from '../IAABBShape';
export default class Polygon implements IAABBShape {
private shape;
private AABB;
constructor(shape: Vector2[]);
GetAABB(): AABB;
ContainsPoint(point: Vector2): boolean;
private checkForHit;
}