1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
|
public class Kreis {
private Punkt2D mittelpunkt;
private double radius;
public Kreis (Punkt2D mittelpunkt, double r) {
if(r<0){
throw new IllegalArgumentException("Parameter > 0 erwartet. Gefunden: "+r);
}
this.mittelpunkt= mittelpunkt;
this.radius=r;
}
..
...
...
|