Permalink
Browse files

*

  • Loading branch information...
boy0001 committed Jan 10, 2017
1 parent ad7fdd1 commit 58094c72c3eb39953b5136afed8d860a51582cf7
@@ -73,6 +73,11 @@ public BlockVector(double x, double y, double z) {
super(x, y, z);
}
@Override
public int hashCode() {
return ((int) x ^ ((int) z << 12)) ^ ((int) y << 24);
}
@Override
public boolean equals(Object obj) {
if (!(obj instanceof Vector)) {
@@ -69,6 +69,11 @@ public BlockVector2D(double x, double z) {
super(x, z);
}
@Override
public int hashCode() {
return ((int) x << 16) ^ (int) z;
}
@Override
public boolean equals(Object obj) {
if (!(obj instanceof Vector2D)) {

0 comments on commit 58094c7

Please sign in to comment.