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 #

AxisAlignedBox box;

DynamicTreeNode childOne #

DynamicTreeNode childOne;

DynamicTreeNode childTwo #

DynamicTreeNode childTwo;

final bool isLeaf #

Returns true if this node is a leaf.

bool get isLeaf => childOne == null;

int key #

Used for sorting.

int key;

DynamicTreeNode next #

DynamicTreeNode next;

DynamicTreeNode parent #

DynamicTreeNode parent;

var userData #

Can contain whatever is useful to the user.

var userData;

Methods

String toString() #

Returns a string representation of this object.

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