From 93255307789ecdec922c6a1cfca9b4e42c5bceb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Luis=20Cerc=C3=B3s=20Pita?= Date: Tue, 31 Jan 2012 16:33:12 +0100 Subject: [PATCH] Reduced tolerance looking for aproximately variables --- src/Mod/Ship/shipUtils/Math.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Ship/shipUtils/Math.py b/src/Mod/Ship/shipUtils/Math.py index f8c583bef..018467c58 100644 --- a/src/Mod/Ship/shipUtils/Math.py +++ b/src/Mod/Ship/shipUtils/Math.py @@ -21,7 +21,7 @@ #* * #*************************************************************************** -def isAprox(a,b,tol=0.0001): +def isAprox(a,b,tol=0.000001): """returns if a value is into (b-tol,b+tol) @param a Value to compare. @param b Center of valid interval @@ -32,7 +32,7 @@ def isAprox(a,b,tol=0.0001): return True return False -def isSamePoint(a,b,tol=0.0001): +def isSamePoint(a,b,tol=0.000001): """returns if two points are the same with a provided tolerance @param a Point to compare. @param b Reference point.