~ubuntu-branches/ubuntu/saucy/merkaartor/saucy

« back to all changes in this revision

Viewing changes to include/ggl/projections/impl/function_overloads.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Bernd Zeimetz
  • Date: 2009-09-13 00:52:12 UTC
  • mto: (1.2.7 upstream) (0.1.3 upstream) (3.1.7 sid)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20090913005212-pjecal8zxm07x0fj
ImportĀ upstreamĀ versionĀ 0.14+svnfixes~20090912

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Generic Geometry Library
 
2
//
 
3
// Copyright Barend Gehrels 1995-2009, Geodan Holding B.V. Amsterdam, the Netherlands.
 
4
// Copyright Bruno Lalande 2008, 2009
 
5
// Use, modification and distribution is subject to the Boost Software License,
 
6
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
 
7
// http://www.boost.org/LICENSE_1_0.txt)
 
8
 
 
9
#ifndef GGL_PROJECTIONS_IMPL_FUNCTION_OVERLOADS_HPP
 
10
#define GGL_PROJECTIONS_IMPL_FUNCTION_OVERLOADS_HPP
 
11
 
 
12
#include <cmath>
 
13
 
 
14
namespace ggl { namespace projection {
 
15
 
 
16
// Functions to resolve ambiguity when compiling with coordinates of different types
 
17
/*inline double atan2(double a, double b)
 
18
{
 
19
    return std::atan2(a, b);
 
20
}
 
21
inline double pow(double a, double b)
 
22
{
 
23
    return std::pow(a, b);
 
24
}
 
25
*/
 
26
 
 
27
inline int int_floor(double f)
 
28
{
 
29
    return int(std::floor(f));
 
30
}
 
31
 
 
32
}} // namespace ggl::projection
 
33
 
 
34
#endif // GGL_PROJECTIONS_IMPL_FUNCTION_OVERLOADS_HPP