diff options
Diffstat (limited to 'src/javax/vecmath/Tuple3d.java')
-rw-r--r-- | src/javax/vecmath/Tuple3d.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/javax/vecmath/Tuple3d.java b/src/javax/vecmath/Tuple3d.java index bf87e60..c02eed1 100644 --- a/src/javax/vecmath/Tuple3d.java +++ b/src/javax/vecmath/Tuple3d.java @@ -339,10 +339,10 @@ public abstract class Tuple3d implements java.io.Serializable, Cloneable { @Override public int hashCode() { long bits = 1L; - bits = 31L * bits + VecMathUtil.doubleToLongBits(x); - bits = 31L * bits + VecMathUtil.doubleToLongBits(y); - bits = 31L * bits + VecMathUtil.doubleToLongBits(z); - return (int) (bits ^ (bits >> 32)); + bits = VecMathUtil.hashDoubleBits(bits, x); + bits = VecMathUtil.hashDoubleBits(bits, y); + bits = VecMathUtil.hashDoubleBits(bits, z); + return VecMathUtil.hashFinish(bits); } |