GEOS
3.4.2
|
00001 /********************************************************************** 00002 * 00003 * GEOS - Geometry Engine Open Source 00004 * http://geos.osgeo.org 00005 * 00006 * Copyright (C) 2001-2002 Vivid Solutions Inc. 00007 * Copyright (C) 2006 Refractions Research Inc. 00008 * 00009 * This is free software; you can redistribute and/or modify it under 00010 * the terms of the GNU Lesser General Public Licence as published 00011 * by the Free Software Foundation. 00012 * See the COPYING file for more information. 00013 * 00014 **********************************************************************/ 00015 00016 #ifndef GEOS_UTIL_MATH_H 00017 #define GEOS_UTIL_MATH_H 00018 00019 namespace geos { namespace util { 00020 00022 double sym_round(double val); 00023 00025 double java_math_round(double val); 00026 00028 double rint_vc(double val); 00029 00034 inline double round(double val) 00035 { 00036 return java_math_round(val); 00037 } 00038 00039 }} // namespace geos::util 00040 00041 #endif // GEOS_UTIL_MATH_H