getSubnode method

NodeNode? getSubnode(
  1. int index
)

get the subquad for the index. If it doesn't exist, create it

Implementation

NodeNode? getSubnode(int index) {
  if (subnode[index] == null) {
    subnode[index] = createSubnode(index);
  }
  return subnode[index];
}