KDTree.fromNode constructor

KDTree.fromNode(
  1. List<Node> nodes, [
  2. bool useVariance = true
])

Implementation

KDTree.fromNode(List<Node> nodes, [bool useVariance = true])
    : _useVariance = useVariance {
  _root = _buildTree(nodes.map((e) => KDNode(e)).toList(), 0);
}