Beispiel #1
0
  @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;
  }
Beispiel #2
0
  @Override
  public int compareTo(Arc a) {

    if (this.getAngle() < a.getAngle()) {
      return -1;
    } else if (this.getAngle() > a.getAngle()) {
      return 1;
    }
    return 0;
  }
Beispiel #3
0
 public boolean isColineaire(Arc a) {
   if (this.getAngle() == a.getAngle()) {
     return true;
   } else {
     return false;
   }
 }