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