Kaydet (Commit) 978fb3ed authored tarafından Caolán McNamara's avatar Caolán McNamara

we can do away with mfSmallValue

Change-Id: Ia3ae16d71d1044ef9f338cd4322b371bdffd8e2e
üst c5bcfe90
...@@ -37,7 +37,6 @@ $(eval $(call gb_Library_add_exception_objects,basegfx,\ ...@@ -37,7 +37,6 @@ $(eval $(call gb_Library_add_exception_objects,basegfx,\
basegfx/source/matrix/b2dhommatrix \ basegfx/source/matrix/b2dhommatrix \
basegfx/source/matrix/b2dhommatrixtools \ basegfx/source/matrix/b2dhommatrixtools \
basegfx/source/matrix/b3dhommatrix \ basegfx/source/matrix/b3dhommatrix \
basegfx/source/numeric/ftools \
basegfx/source/pixel/bpixel \ basegfx/source/pixel/bpixel \
basegfx/source/point/b2dpoint \ basegfx/source/point/b2dpoint \
basegfx/source/point/b2ipoint \ basegfx/source/point/b2ipoint \
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <basegfx/numeric/ftools.hxx>
#include <algorithm>
namespace basegfx
{
// init static member of class fTools
double ::basegfx::fTools::mfSmallValue = 0.000000001;
} // end of namespace basegfx
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -149,14 +149,9 @@ namespace basegfx ...@@ -149,14 +149,9 @@ namespace basegfx
class BASEGFX_DLLPUBLIC fTools class BASEGFX_DLLPUBLIC fTools
{ {
/// Threshold value for equalZero()
static double mfSmallValue;
public: public:
/// Get threshold value for equalZero and friends /// Get threshold value for equalZero and friends
static double getSmallValue() { return mfSmallValue; } static double getSmallValue() { return 0.000000001f; }
/// Set threshold value for equalZero and friends
static void setSmallValue(const double& rfNew) { mfSmallValue = rfNew; }
/// Compare against small value /// Compare against small value
static bool equalZero(const double& rfVal) static bool equalZero(const double& rfVal)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment