UNPKG

aabb-tree

Version:

Basic implementation of the AABB-Tree (Axis Aligned Box Bounding Tree)

16 lines (15 loc) 425 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class AABBNode { constructor(Aabb, shape, parentNode, leftNode, rightNode) { this.Aabb = Aabb; this.Shape = shape; this.ParentNode = parentNode; this.LeftNode = leftNode; this.RightNode = rightNode; } get IsLeaf() { return this.LeftNode === undefined; } } exports.default = AABBNode;