Dart Documentationbox2dDynamicTreeNode

DynamicTreeNode class

class DynamicTreeNode {
 AxisAlignedBox box;

 DynamicTreeNode parent;

 DynamicTreeNode next;

 DynamicTreeNode childOne;

 DynamicTreeNode childTwo;

 /** Can contain whatever is useful to the user. */
 var userData;

 /** Used for sorting. */
 int key;

 /** Should never be constructed outside the engine. */
 DynamicTreeNode._construct()
   : box = new AxisAlignedBox(),
     parent = null,
     next = null,
     childOne = null,
     childTwo = null;

 /** Returns true if this node is a leaf. */
 bool get isLeaf => childOne == null;

 String toString() => box.toString();
}

Properties

AxisAlignedBox box #

box

DynamicTreeNode childOne #

childOne

DynamicTreeNode childTwo #

childTwo

final bool isLeaf #

Returns true if this node is a leaf.

bool get isLeaf => childOne == null;

int key #

key

DynamicTreeNode next #

next

DynamicTreeNode parent #

parent

var userData #

userData

Methods

String toString() #

Returns a string representation of this object.

docs inherited from Object
String toString() => box.toString();