1:
2:
3:
4:
5:
6:
7:
8:
9:
|
public Rechteck schnitt(Rechteck rechteck){
if((this.x+this.breite) < rechteck.x || this.x > (rechteck.x+rechteck.breite)) {
return(null);
}
if((this.y-this.hoehe) < rechteck.y || this.y > (rechteck.y-rechteck.hoehe)){
return(null);
}
|