summaryrefslogtreecommitdiffstats
path: root/src/javax
diff options
context:
space:
mode:
authorChien Yang <[email protected]>2008-01-31 21:55:08 +0000
committerChien Yang <[email protected]>2008-01-31 21:55:08 +0000
commitb7f7ab4125676c11ea6be21a14be22575cb90621 (patch)
tree8994dfaa1b8e985c64cb7be86c92b14fa4087871 /src/javax
parent680a54822c00e744a60b159cb1cc4d1ae21a8be8 (diff)
Issue number: 538
Obtained from: aj_cacho Submitted by: aj_cacho Reviewed by: jada Fixed issue 538. git-svn-id: https://svn.java.net/svn/vecmath~svn/trunk@125 dd45e54d-f42e-c781-df72-dca083a658b1
Diffstat (limited to 'src/javax')
-rw-r--r--src/javax/vecmath/AxisAngle4d.java7
-rw-r--r--src/javax/vecmath/Quat4d.java5
2 files changed, 5 insertions, 7 deletions
diff --git a/src/javax/vecmath/AxisAngle4d.java b/src/javax/vecmath/AxisAngle4d.java
index 6c03049..223c6c5 100644
--- a/src/javax/vecmath/AxisAngle4d.java
+++ b/src/javax/vecmath/AxisAngle4d.java
@@ -12,8 +12,6 @@
package javax.vecmath;
-import java.lang.Math;
-
/**
* A four-element axis angle represented by double-precision floating point
* x,y,z,angle components. An axis angle is a rotation of angle (radians)
@@ -46,8 +44,9 @@ public class AxisAngle4d implements java.io.Serializable, Cloneable {
*/
public double angle;
- final static double EPS = 0.000001;
-
+ // Fixed to issue 538
+ final static double EPS = 1.0e-12;
+
/**
* Constructs and initializes an AxisAngle4d from the specified
* x, y, z, and angle.
diff --git a/src/javax/vecmath/Quat4d.java b/src/javax/vecmath/Quat4d.java
index 9e38d7d..a04d0cf 100644
--- a/src/javax/vecmath/Quat4d.java
+++ b/src/javax/vecmath/Quat4d.java
@@ -12,8 +12,6 @@
package javax.vecmath;
-import java.lang.Math;
-
/**
* A 4-element quaternion represented by double precision floating
* point x,y,z,w coordinates. The quaternion is always normalized.
@@ -24,7 +22,8 @@ public class Quat4d extends Tuple4d implements java.io.Serializable {
// Combatible with 1.1
static final long serialVersionUID = 7577479888820201099L;
- final static double EPS = 0.000001;
+ // Fixed to issue 538
+ final static double EPS = 1.0e-12;
final static double EPS2 = 1.0e-30;
final static double PIO2 = 1.57079632679;