Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+47
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
**
|
||||
** @RDE_HEADER@
|
||||
** Math const
|
||||
** $Id$
|
||||
** $HeadURL$
|
||||
** $Author$
|
||||
**
|
||||
** -----------------------------------------------------------------------------------------------
|
||||
**
|
||||
** Hardware-Environment: Intel-PC
|
||||
** Software-Environment: Windows 7, Qt 5.4. ArcGIS 10.2.5
|
||||
**
|
||||
** Language ........: C++ 11
|
||||
**
|
||||
** -----------------------------------------------------------------------------------------------
|
||||
**
|
||||
** Author ...........: Jörg Turla, SPD G, Tel. 3132
|
||||
**
|
||||
** -----------------------------------------------------------------------------------------------
|
||||
**
|
||||
** Notes .........:
|
||||
**
|
||||
** 04.12.2015, JT : First edition
|
||||
**
|
||||
** -----------------------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cmath>
|
||||
|
||||
namespace MathConst
|
||||
{
|
||||
|
||||
constexpr double pi = M_PI;
|
||||
constexpr double pi_two = pi * 2;
|
||||
constexpr double pi_half = M_PI_2;
|
||||
constexpr double pi_quater = M_PI_4;
|
||||
|
||||
constexpr double EarthRadius = 6371001.0;
|
||||
|
||||
constexpr double WGS84_Major_a = 6378137.0; // WGS84 Ellipsoid, a value (Radius am Äquator, große Halbachse)
|
||||
constexpr double WGS84_Minor_b = 6378137.0*( 1.0 - 1.0/298.257223563);
|
||||
constexpr double WGS84_SQR_EXC = ((WGS84_Major_a * WGS84_Major_a) - (WGS84_Minor_b * WGS84_Minor_b))/(WGS84_Major_a * WGS84_Major_a);
|
||||
|
||||
} // namespace MathConst
|
||||
Reference in new issue
Block a user