public boolean selectPrimary(Vector pos) { if (pos1 != null && (pos.compareTo(pos1) == 0)) { return false; } pos1 = pos.toBlockVector(); region.setPos1(pos1); return true; }
public boolean selectSecondary(Vector pos) { if (pos2 != null && (pos.compareTo(pos2)) == 0) { return false; } pos2 = pos.toBlockVector(); region.setPos2(pos2); return true; }
@Override public int compareTo(Vector other) { return m_parent.compareTo(other); }