summaryrefslogtreecommitdiffstats
path: root/src/javax/vecmath/Matrix4d.java
diff options
context:
space:
mode:
authorKevin Rushforth <[email protected]>2004-10-05 17:57:17 +0000
committerKevin Rushforth <[email protected]>2004-10-05 17:57:17 +0000
commitc2c794b342ee48fbaa91b6a97123884a09807e80 (patch)
tree5eb9713f863876cea9ce49168c4ea0ad97b844dc /src/javax/vecmath/Matrix4d.java
parent42c4b785100ca085a8e39d86a45cda07a8d898f1 (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/Matrix4d.java')
-rw-r--r--src/javax/vecmath/Matrix4d.java32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/javax/vecmath/Matrix4d.java b/src/javax/vecmath/Matrix4d.java
index 0aa353b..dd338a7 100644
--- a/src/javax/vecmath/Matrix4d.java
+++ b/src/javax/vecmath/Matrix4d.java
@@ -3060,22 +3060,22 @@ public class Matrix4d implements java.io.Serializable, Cloneable {
*/
public int hashCode() {
long bits = 1L;
- bits = 31L * bits + Double.doubleToLongBits(m00);
- bits = 31L * bits + Double.doubleToLongBits(m01);
- bits = 31L * bits + Double.doubleToLongBits(m02);
- bits = 31L * bits + Double.doubleToLongBits(m03);
- bits = 31L * bits + Double.doubleToLongBits(m10);
- bits = 31L * bits + Double.doubleToLongBits(m11);
- bits = 31L * bits + Double.doubleToLongBits(m12);
- bits = 31L * bits + Double.doubleToLongBits(m13);
- bits = 31L * bits + Double.doubleToLongBits(m20);
- bits = 31L * bits + Double.doubleToLongBits(m21);
- bits = 31L * bits + Double.doubleToLongBits(m22);
- bits = 31L * bits + Double.doubleToLongBits(m23);
- bits = 31L * bits + Double.doubleToLongBits(m30);
- bits = 31L * bits + Double.doubleToLongBits(m31);
- bits = 31L * bits + Double.doubleToLongBits(m32);
- bits = 31L * bits + Double.doubleToLongBits(m33);
+ bits = 31L * bits + VecMathUtil.doubleToLongBits(m00);
+ bits = 31L * bits + VecMathUtil.doubleToLongBits(m01);
+ bits = 31L * bits + VecMathUtil.doubleToLongBits(m02);
+ bits = 31L * bits + VecMathUtil.doubleToLongBits(m03);
+ bits = 31L * bits + VecMathUtil.doubleToLongBits(m10);
+ bits = 31L * bits + VecMathUtil.doubleToLongBits(m11);
+ bits = 31L * bits + VecMathUtil.doubleToLongBits(m12);
+ bits = 31L * bits + VecMathUtil.doubleToLongBits(m13);
+ bits = 31L * bits + VecMathUtil.doubleToLongBits(m20);
+ bits = 31L * bits + VecMathUtil.doubleToLongBits(m21);
+ bits = 31L * bits + VecMathUtil.doubleToLongBits(m22);
+ bits = 31L * bits + VecMathUtil.doubleToLongBits(m23);
+ bits = 31L * bits + VecMathUtil.doubleToLongBits(m30);
+ bits = 31L * bits + VecMathUtil.doubleToLongBits(m31);
+ bits = 31L * bits + VecMathUtil.doubleToLongBits(m32);
+ bits = 31L * bits + VecMathUtil.doubleToLongBits(m33);
return (int) (bits ^ (bits >> 32));
}