remove(_:using:)
Removes the specified object from the tree, using a reference to its containing node.
Declaration
func remove(_ data: ElementType, using node: GKQuadtreeNode) -> BoolParameters
- data:
The object to be removed from the tree.
- node:
The node in the tree containing the object.
Return Value
true if the object was removed from the tree. false if the specified object or node is not in the tree.
Discussion
By referencing the node that contains the object to remove, this method can quickly remove an object from the tree without needing to perform an exhaustive search. To make use of this performance optimization, keep a reference to the node returned when you add elements with the add(_:at:) or add(_:in:) methods.