Class QuadTreePosition

Constants to store quad-tree positions.

Constructors

Properties

bottomLeft: number = 2

Index of top left quad-tree branch node.

Can be used to navigate the children array looking for neighbors.

bottomRight: number = 3

Index of top left quad-tree branch node.

Can be used to navigate the children array looking for neighbors.

root: number = -1

Root node has no location.

topLeft: number = 0

Index of top left quad-tree branch node.

Can be used to navigate the children array looking for neighbors.

topRight: number = 1

Index of top left quad-tree branch node.

Can be used to navigate the children array looking for neighbors.