GEOS 3.9.1
math.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2001-2002 Vivid Solutions Inc.
7 * Copyright (C) 2006 Refractions Research Inc.
8 *
9 * This is free software; you can redistribute and/or modify it under
10 * the terms of the GNU Lesser General Public Licence as published
11 * by the Free Software Foundation.
12 * See the COPYING file for more information.
13 *
14 **********************************************************************/
15
16#ifndef GEOS_UTIL_MATH_H
17#define GEOS_UTIL_MATH_H
18
19namespace geos {
20namespace util {
21
23double sym_round(double val);
24
26double java_math_round(double val);
27
29double rint_vc(double val);
30
35inline double
36round(double val)
37{
38 return java_math_round(val);
39}
40
41}
42} // namespace geos::util
43
44#endif // GEOS_UTIL_MATH_H
double rint_vc(double val)
Equivalent to Java Math.rint()
double round(double val)
Definition: math.h:36
double java_math_round(double val)
Asymmetric Rounding Algorithm.
double sym_round(double val)
Symmetric Rounding Algorithm.
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:26