Skip to content

Commit deb1ba2

Browse files
committed
Forcing the test epsilon to be looser thant the plane epsilon
1 parent e55fbb8 commit deb1ba2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/eu/mihosoft/vrl/v3d/Vector3d.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ public boolean equals(Object obj) {
435435
if (!Vector3d.class.isInstance(obj)) {
436436
return false;
437437
}
438-
return test((Vector3d)obj,Plane.getEPSILON()*100);
438+
return test((Vector3d)obj,Plane.getEPSILON());
439439
}
440440

441441
double distance(Vector3d v) {
@@ -455,7 +455,7 @@ public boolean test(Vector3d obj, double epsilon) {
455455
final Vector3d other = (Vector3d) obj;
456456
double distance =distance(other);
457457
double abs = Math.abs(distance);
458-
if(abs>epsilon)
458+
if(abs>epsilon*1000)
459459
return false;
460460
return true;
461461
}

0 commit comments

Comments
 (0)