(Point2D p)
| 32 | |
| 33 | // add the point to the set (if it is not already in the set) |
| 34 | public void insert(Point2D p) { |
| 35 | if (p == null) throw new IllegalArgumentException(); |
| 36 | treeSet.add(p); |
| 37 | } |
| 38 | |
| 39 | // does the set contain point p? |
| 40 | public boolean contains(Point2D p) { |