diff options
author | Kevin Rushforth <[email protected]> | 2004-10-05 17:57:17 +0000 |
---|---|---|
committer | Kevin Rushforth <[email protected]> | 2004-10-05 17:57:17 +0000 |
commit | c2c794b342ee48fbaa91b6a97123884a09807e80 (patch) | |
tree | 5eb9713f863876cea9ce49168c4ea0ad97b844dc /src/javax/vecmath/Matrix3f.java | |
parent | 42c4b785100ca085a8e39d86a45cda07a8d898f1 (diff) |
Issue number: 36
Submitted by: kcr
Fixed Issue 36 -- Vector3d hashCode() method distinguishes between -0.0 and 0.0
git-svn-id: https://svn.java.net/svn/vecmath~svn/trunk@20 dd45e54d-f42e-c781-df72-dca083a658b1
Diffstat (limited to 'src/javax/vecmath/Matrix3f.java')
-rw-r--r-- | src/javax/vecmath/Matrix3f.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/javax/vecmath/Matrix3f.java b/src/javax/vecmath/Matrix3f.java index 155d5e1..43f5301 100644 --- a/src/javax/vecmath/Matrix3f.java +++ b/src/javax/vecmath/Matrix3f.java @@ -1953,15 +1953,15 @@ public class Matrix3f implements java.io.Serializable, Cloneable { */ public int hashCode() { long bits = 1L; - bits = 31L * bits + (long)Float.floatToIntBits(m00); - bits = 31L * bits + (long)Float.floatToIntBits(m01); - bits = 31L * bits + (long)Float.floatToIntBits(m02); - bits = 31L * bits + (long)Float.floatToIntBits(m10); - bits = 31L * bits + (long)Float.floatToIntBits(m11); - bits = 31L * bits + (long)Float.floatToIntBits(m12); - bits = 31L * bits + (long)Float.floatToIntBits(m20); - bits = 31L * bits + (long)Float.floatToIntBits(m21); - bits = 31L * bits + (long)Float.floatToIntBits(m22); + bits = 31L * bits + (long)VecMathUtil.floatToIntBits(m00); + bits = 31L * bits + (long)VecMathUtil.floatToIntBits(m01); + bits = 31L * bits + (long)VecMathUtil.floatToIntBits(m02); + bits = 31L * bits + (long)VecMathUtil.floatToIntBits(m10); + bits = 31L * bits + (long)VecMathUtil.floatToIntBits(m11); + bits = 31L * bits + (long)VecMathUtil.floatToIntBits(m12); + bits = 31L * bits + (long)VecMathUtil.floatToIntBits(m20); + bits = 31L * bits + (long)VecMathUtil.floatToIntBits(m21); + bits = 31L * bits + (long)VecMathUtil.floatToIntBits(m22); return (int) (bits ^ (bits >> 32)); } |