summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/basegfx/numeric/ftools.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/basegfx/numeric/ftools.hxx b/include/basegfx/numeric/ftools.hxx
index 32c76542c487..b4ae0a484bd8 100644
--- a/include/basegfx/numeric/ftools.hxx
+++ b/include/basegfx/numeric/ftools.hxx
@@ -151,10 +151,13 @@ namespace basegfx
class BASEGFX_DLLPUBLIC fTools
{
public:
+ /// Get threshold value for equalZero and friends
+ static double getSmallValue() { return 0.000000001f; }
+
/// Compare against small value
static bool equalZero(const double& rfVal)
{
- return (fabs(rfVal) <= 0.000000001f);
+ return (fabs(rfVal) <= getSmallValue());
}
/// Compare against given small value