@Override public boolean equals(Object o) { if (o instanceof Arc) { Arc a = (Arc) o; if ((this.getX() == a.getX()) && (this.getY() == a.getY())) return true; } return false; }
@Override public int compareTo(Arc a) { if (this.getAngle() < a.getAngle()) { return -1; } else if (this.getAngle() > a.getAngle()) { return 1; } return 0; }
public boolean isColineaire(Arc a) { if (this.getAngle() == a.getAngle()) { return true; } else { return false; } }