summaryrefslogtreecommitdiffstats
path: root/src/javax/vecmath/Tuple2d.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/javax/vecmath/Tuple2d.java')
-rw-r--r--src/javax/vecmath/Tuple2d.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/javax/vecmath/Tuple2d.java b/src/javax/vecmath/Tuple2d.java
index 2b60b2a..673bfb2 100644
--- a/src/javax/vecmath/Tuple2d.java
+++ b/src/javax/vecmath/Tuple2d.java
@@ -290,9 +290,9 @@ public abstract class Tuple2d implements java.io.Serializable, Cloneable {
@Override
public int hashCode() {
long bits = 1L;
- bits = 31L * bits + VecMathUtil.doubleToLongBits(x);
- bits = 31L * bits + VecMathUtil.doubleToLongBits(y);
- return (int) (bits ^ (bits >> 32));
+ bits = VecMathUtil.hashDoubleBits(bits, x);
+ bits = VecMathUtil.hashDoubleBits(bits, y);
+ return VecMathUtil.hashFinish(bits);
}