@iamnotstone/aabb-tree
Version:
Basic implementation of the AABB-Tree (Axis Aligned Box Bounding Tree)
12 lines (11 loc) • 371 B
TypeScript
import IAABBShape from './IAABBShape';
import AABB from './AABB';
export default class AABBNode {
Aabb: AABB;
Shape?: IAABBShape;
ParentNode?: AABBNode;
LeftNode?: AABBNode;
RightNode?: AABBNode;
constructor(Aabb: AABB, shape?: IAABBShape, parentNode?: AABBNode, leftNode?: AABBNode, rightNode?: AABBNode);
get IsLeaf(): boolean;
}