From c2c794b342ee48fbaa91b6a97123884a09807e80 Mon Sep 17 00:00:00 2001 From: Kevin Rushforth Date: Tue, 5 Oct 2004 17:57:17 +0000 Subject: 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 --- src/javax/vecmath/AxisAngle4f.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/javax/vecmath/AxisAngle4f.java') diff --git a/src/javax/vecmath/AxisAngle4f.java b/src/javax/vecmath/AxisAngle4f.java index 7de19f9..6367313 100644 --- a/src/javax/vecmath/AxisAngle4f.java +++ b/src/javax/vecmath/AxisAngle4f.java @@ -504,10 +504,10 @@ public class AxisAngle4f implements java.io.Serializable, Cloneable { */ public int hashCode() { long bits = 1L; - bits = 31L * bits + (long)Float.floatToIntBits(x); - bits = 31L * bits + (long)Float.floatToIntBits(y); - bits = 31L * bits + (long)Float.floatToIntBits(z); - bits = 31L * bits + (long)Float.floatToIntBits(angle); + bits = 31L * bits + (long)VecMathUtil.floatToIntBits(x); + bits = 31L * bits + (long)VecMathUtil.floatToIntBits(y); + bits = 31L * bits + (long)VecMathUtil.floatToIntBits(z); + bits = 31L * bits + (long)VecMathUtil.floatToIntBits(angle); return (int) (bits ^ (bits >> 32)); } -- cgit v1.2.3