blob: 80c1fc1cae1e1ff998654583c1182e5995b4649a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package figures.primitives.solid;
import java.util.Collection;
import java.lang.String;
import figures.primitives.planar.*;
public class SolidPoint extends Point {
private int z;
public SolidPoint(int x, int y, int z) {
super(x, y);
this.z = z;
}
public int getZ() { return z; }
public void setZ(int z) { this.z = z; }
public void incrXY(int dx, int dy) {
super.incrXY(dx, dy);
setZ(getZ() + dx + dy);
}
}
|