summaryrefslogtreecommitdiffstats
path: root/src/javax/vecmath/Tuple3f.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/javax/vecmath/Tuple3f.java')
-rw-r--r--src/javax/vecmath/Tuple3f.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/javax/vecmath/Tuple3f.java b/src/javax/vecmath/Tuple3f.java
index d4be6a9..28943ee 100644
--- a/src/javax/vecmath/Tuple3f.java
+++ b/src/javax/vecmath/Tuple3f.java
@@ -405,10 +405,10 @@ public abstract class Tuple3f implements java.io.Serializable, Cloneable {
@Override
public int hashCode() {
long bits = 1L;
- bits = 31L * bits + (long)VecMathUtil.floatToIntBits(x);
- bits = 31L * bits + (long)VecMathUtil.floatToIntBits(y);
- bits = 31L * bits + (long)VecMathUtil.floatToIntBits(z);
- return (int) (bits ^ (bits >> 32));
+ bits = VecMathUtil.hashFloatBits(bits, x);
+ bits = VecMathUtil.hashFloatBits(bits, y);
+ bits = VecMathUtil.hashFloatBits(bits, z);
+ return VecMathUtil.hashFinish(bits);
}