Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public HashSet<BetterPoint> between(double rmin, double rmax)
- {
- HashSet<BetterPoint> result = new HashSet<BetterPoint>();
- BetterPoint pointI = null;
- Iterator<BetterPoint> i = this.iterator();
- while(i.hasNext())
- {
- pointI = i.next();
- if(pointI.distance() <= rmax && pointI.distance() >= rmin)
- result.add(pointI);
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement