Atlas  0.7.0
Networking protocol for the Worldforge system.
float.h
1 // float.h (Float comparison for the Atlas library, copied from WFMath's const.h)
2 //
3 // The WorldForge Project
4 // Copyright (C) 2001, 2002 The WorldForge Project
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software Foundation,
18 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 //
20 // For information about WorldForge and its authors, please contact
21 // the Worldforge Web Site at http://www.worldforge.org.
22 
23 // Author: Ron Steinke
24 // Created: 2001-12-7
25 
26 #ifndef ATLAS_FLOAT_H
27 #define ATLAS_FLOAT_H
28 
29 #include <limits>
30 
31 namespace Atlas {
32 
33 bool Equal(double x1, double x2, double epsilon = std::numeric_limits<double>::epsilon());
34 bool Equal(float x1, float x2, float epsilon = std::numeric_limits<float>::epsilon());
35 
36 } // namespace Atlas
37 
38 #endif // ATLAS_FLOAT_H
Definition: Bridge.h:21