Skip to content

Class: TreeNode<T> ​

A node in the dynamic tree. The client does not interact with this directly.

Type Parameters ​

T ​

T

Constructors ​

Constructor ​

new TreeNode<T>(id?): TreeNode<T>

Parameters ​

id? ​

number

Returns ​

TreeNode<T>

Properties ​

aabb ​

aabb: AABB

Enlarged AABB


child1 ​

child1: TreeNode<T> = null


child2 ​

child2: TreeNode<T> = null


height ​

height: number = -1

0: leaf, -1: free node


id ​

id: number


parent ​

parent: TreeNode<T> = null


userData ​

userData: T = null

Methods ​

isLeaf() ​

isLeaf(): boolean

Returns ​

boolean