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 6827 2010-05-20 19:56:18Z karney $" |
#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) <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 6827 2010-05-20 19:56:18Z karney $" |
Definition at line 11 of file Constants.hpp.
#define STATIC_ASSERT | ( | cond, | |||
reason | ) | { enum{ STATIC_ASSERT_ENUM=1/int(cond) }; } |
A simple compile-time assert. This is designed to be compatible with the C++0X static_assert.
Definition at line 18 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 29 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 42 of file Constants.hpp.