GeographicLib  1.30
Math.hpp File Reference

#include <GeographicLib/Constants.hpp>
#include <cmath>
#include <algorithm>
#include <limits>

Go to the source code of this file.

## Classes

class  GeographicLib::Math
Mathematical functions needed by GeographicLib. More...

## Namespaces

namespace  GeographicLib
Namespace for GeographicLib.

## Macros

#define GEOGRAPHICLIB_CPLUSPLUS11_MATH   0

#define WORDS_BIGENDIAN   0

#define HAVE_LONG_DOUBLE   0

#define GEOGRAPHICLIB_PRECISION   2

## Detailed Description

Definition in file Math.hpp.

## Macro Definition Documentation

 #define GEOGRAPHICLIB_CPLUSPLUS11_MATH   0

Are C++11 math functions available?

Definition at line 24 of file Math.hpp.

 #define WORDS_BIGENDIAN   0

Definition at line 29 of file Math.hpp.

 #define HAVE_LONG_DOUBLE   0

Definition at line 33 of file Math.hpp.

 #define GEOGRAPHICLIB_PRECISION   2

The precision of floating point numbers used in GeographicLib. 1 means float (single precision); 2 (the default) means double; 3 means long double; 4 is reserved for quadruple precision. Nearly all the testing has been carried out with doubles and that's the recommended configuration. In order for long double to be used, HAVE_LONG_DOUBLE needs to be defined. Note that with Microsoft Visual Studio, long double is the same as double.

Definition at line 45 of file Math.hpp.