aabb-tree
Version:
Basic implementation of the AABB-Tree (Axis Aligned Box Bounding Tree)
12 lines (11 loc) • 329 B
TypeScript
import Vector2 from '../Vector2';
import AABB from '../AABB';
import IAABBShape from '../IAABBShape';
export default class Circle implements IAABBShape {
private center;
private radius;
private AABB;
constructor(center: Vector2, radius: number);
GetAABB(): AABB;
ContainsPoint(point: Vector2): boolean;
}