Search in sources :

Example 1 with MutableIntIterator

use of org.eclipse.collections.api.iterator.MutableIntIterator in project narchy by automenta.

the class Polygon method is_exist.

public boolean is_exist(double x, double y) {
    MutableIntIterator iter = _points.keySet().intIterator();
    Pointbase pb;
    while (iter.hasNext()) {
        pb = getPoint(iter.next());
        if ((pb.x == x) && (pb.y == y))
            return true;
    }
    return false;
}
Also used : MutableIntIterator(org.eclipse.collections.api.iterator.MutableIntIterator)

Aggregations

MutableIntIterator (org.eclipse.collections.api.iterator.MutableIntIterator)1