GEOS: math.h Source File

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

- File List

# math.h

    00001 /**********************************************************************
    00002  * $Id: math.h 1820 2006-09-06 16:54:23Z mloskot $
    00003  *
    00004  * GEOS - Geometry Engine Open Source
    00005  * http://geos.refractions.net
    00006  *
    00007  * Copyright (C) 2001-2002 Vivid Solutions Inc.
    00008  * Copyright (C) 2006 Refractions Research Inc.
    00009  *
    00010  * This is free software; you can redistribute and/or modify it under
    00011  * the terms of the GNU Lesser General Public Licence as published
    00012  * by the Free Software Foundation.
    00013  * See the COPYING file for more information.
    00014  *
    00015  **********************************************************************/
    00016
    00017 #ifndef GEOS_UTIL_MATH_H
    00018 #define GEOS_UTIL_MATH_H
    00019
    00020 namespace geos {
    00021 namespace util { // geos::util
    00022
    00024 double sym_round(double val);
    00025
    00027 double java_math_round(double val);
    00028
    00030 double rint_vc(double val);
    00031
    00033 //
    00037 inline double round(double val) {
    00038         return java_math_round(val);
    00039 }
    00040
    00041 } // namespace geos.util
    00042 } // namespace geos
    00043
    00044
    00045 #endif // GEOS_UTIL_MATH_H
    00046
    00047 /**********************************************************************
    00048  * $Log$
    00049  * Revision 1.4  2006/05/04 14:05:31  strk
    00050  * * 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.
    00051  *
    00052  * Revision 1.3  2006/04/07 12:37:53  mloskot
    00053  * Added java_math_round() function for Asymmetric Arithmetic Rounding. Small fixes in Unit Tests.
    00054  *
    00055  * Revision 1.2  2006/04/06 21:30:36  strk
    00056  * Added missing rint_vc() forward declaration
    00057  *
    00058  * Revision 1.1  2006/03/09 16:46:49  strk
    00059  * geos::geom namespace definition, first pass at headers split
    00060  *
    00061  **********************************************************************/