Skip to content

Commit 6214048

Browse files
add method to insert a node
1 parent 7a7549d commit 6214048

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/com/jwetherell/algorithms/data_structures/QuadTree.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,13 @@ public boolean insert(double x, double y) {
134134
return root.insert((P)xyPoint);
135135
}
136136

137+
/**
138+
* Add a node.
139+
*/
140+
public boolean insert(P node) {
141+
return root.insert(node);
142+
}
143+
137144
/**
138145
* {@inheritDoc}
139146
*/

0 commit comments

Comments
 (0)