summaryrefslogtreecommitdiff
path: root/src/main/java/ihl/handpump/XYZ.java
blob: 9a2627e7a0191d02f4964c0e13a16b1123c19061 (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
25
26
package ihl.handpump;

public class XYZ {
	public int x;
	public int y;
	public int z;
	
	public XYZ(int x1,int y1,int z1) 
	{
		this.x=x1;
		this.y=y1;
		this.z=z1;
	}
	
	@Override
	public boolean equals(Object obj)
	{
		if(obj instanceof XYZ)
		{
			XYZ xyz2 = (XYZ) obj;
			return (this.x==xyz2.x && this.y==xyz2.y && this.z==xyz2.z);
		}
		return false;
	}

}