GEOS: math.h Source File

GEOS 3.3.8

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

math.h
1 /**********************************************************************
2 * $Id: math.h 2854 2010-01-16 20:12:23Z mloskot $
3 *
4 * GEOS - Geometry Engine Open Source
5 * http://geos.refractions.net
6 *
7 * Copyright (C) 2001-2002 Vivid Solutions Inc.
8 * Copyright (C) 2006 Refractions Research Inc.
9 *
10 * This is free software; you can redistribute and/or modify it under
11 * the terms of the GNU Lesser General Public Licence as published
12 * by the Free Software Foundation.
13 * See the COPYING file for more information.
14 *
15 **********************************************************************/
16
17 #ifndef GEOS_UTIL_MATH_H
18 #define GEOS_UTIL_MATH_H
19
20 namespace geos { namespace util {
21
23 double sym_round(double val);
24
26 double java_math_round(double val);
27
29 double rint_vc(double val);
30
35 inline double round(double val)
36 {
37 return java_math_round(val);
38 }
39
40 }} // namespace geos::util
41
42 #endif // GEOS_UTIL_MATH_H
43
44 /**********************************************************************
45 * $Log$
46 * Revision 1.4 2006/05/04 14:05:31 strk
47 * * source/headers/geos/util/math.h: provided an util::round() method being an inline proxy to call appropriate default rounding function for the whole GEOS codebase. Currently pointing at util::java_math_round() being the last being used.
48 *
49 * Revision 1.3 2006/04/07 12:37:53 mloskot
50 * Added java_math_round() function for Asymmetric Arithmetic Rounding. Small fixes in Unit Tests.
51 *
52 * Revision 1.2 2006/04/06 21:30:36 strk
53 * Added missing rint_vc() forward declaration
54 *
55 * Revision 1.1 2006/03/09 16:46:49 strk
56 * geos::geom namespace definition, first pass at headers split
57 *
58 **********************************************************************/