package com.nshirley.engine3d.math;

public class Vector3i {

	public int x, y, z;
	
	public Vector3i() {
		x = 0;
		y = 0;
		z = 0;
	}
	
	public Vector3i(int x, int y, int z) {
		this.x = x;
		this.y = y;
		this.z = z;
	}
	
	public Vector3i add(Vector3i a, Vector3i b) {
		return new Vector3i(a.x + b.x, a.y + b.y, a.z + b.z);
	}
	
	public String toString() {
		return x + " " + y + " " + z;
	}
	
}

@@ -55,16 +55,545 @@
 or3i %7B%0A%0A
+%09@Override%0A%09public int hashCode() %7B%0A%09%09final int prime = 31;%0A%09%09int result = 1;%0A%09%09result = prime * result + x;%0A%09%09result = prime * result + y;%0A%09%09result = prime * result + z;%0A%09%09return result;%0A%09%7D%0A%0A%09@Override%0A%09public boolean equals(Object obj) %7B%0A%09%09if (this == obj)%0A%09%09%09return true;%0A%09%09if (obj == null)%0A%09%09%09return false;%0A%09%09if (getClass() != obj.getClass())%0A%09%09%09return false;%0A%09%09Vector3i other = (Vector3i) obj;%0A%09%09if (x != other.x)%0A%09%09%09return false;%0A%09%09if (y != other.y)%0A%09%09%09return false;%0A%09%09if (z != other.z)%0A%09%09%09return false;%0A%09%09return true;%0A%09%7D%0A%0A
 %09public 

add hash code to vector3i