Header for GeographicLib::Constants class. More...
#include <cmath>
#include <limits>
#include <algorithm>
#include <stdexcept>
Go to the source code of this file.
Classes | |
class | GeographicLib::Math |
Mathematical functions needed by GeographicLib. More... | |
class | GeographicLib::Constants |
Constants needed by GeographicLib More... | |
class | GeographicLib::GeographicErr |
Exception handling for GeographicLib More... | |
Namespaces | |
namespace | GeographicLib |
Namespace for GeographicLib. | |
Defines | |
#define | GEOGRAPHICLIB_CONSTANTS_HPP "$Id: Constants.hpp 6967 2011-02-19 15:53:41Z karney $" |
#define | GEOGRAPHICLIB_CPLUSPLUS0X_MATH 0 |
#define | STATIC_ASSERT(cond, reason) { enum{ STATIC_ASSERT_ENUM=1/int(cond) }; } |
#define | RCSID_DECL(x) namespace { char VAR_ ## x [] = x; } |
#define | GEOGRAPHICLIB_PREC 1 |
Header for GeographicLib::Constants class.
Copyright (c) Charles Karney (2008, 2009, 2010, 2011) <charles@karney.com> and licensed under the LGPL. For more information, see http://geographiclib.sourceforge.net/
Definition in file Constants.hpp.
#define GEOGRAPHICLIB_CONSTANTS_HPP "$Id: Constants.hpp 6967 2011-02-19 15:53:41Z karney $" |
Definition at line 11 of file Constants.hpp.
#define GEOGRAPHICLIB_CPLUSPLUS0X_MATH 0 |
Are C++0X math functions available?
Definition at line 20 of file Constants.hpp.
#define STATIC_ASSERT | ( | cond, | ||
reason | ||||
) | { enum{ STATIC_ASSERT_ENUM=1/int(cond) }; } |
A compile-time assert. Use C++0X static_assert, if available.
Definition at line 33 of file Constants.hpp.
Referenced by GeographicLib::TransverseMercator::TransverseMercator().
#define RCSID_DECL | ( | x | ) | namespace { char VAR_ ## x [] = x; } |
Insertion of RCS Id strings into the object file.
Definition at line 45 of file Constants.hpp.
#define GEOGRAPHICLIB_PREC 1 |
The precision of floating point numbers used in GeographicLib. 0 means float; 1 (default) means double; 2 means long double. Nearly all the testing has been carried out with doubles and that's the recommended configuration. Note that with Microsoft Visual Studio, long double is the same as double.
Definition at line 58 of file Constants.hpp.