-
Notifications
You must be signed in to change notification settings - Fork 2
/
pch.h
58 lines (46 loc) · 1.13 KB
/
pch.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// pch.h : primary include file for standard system includes
#pragma once
#include <ctime>
#include <cstring>
#include <sstream>
#include <string>
#include <memory>
#include <string>
#include <iostream>
#include <fstream>
#include <map>
#include <vector>
#include <set>
#include <stdio.h>
#include <stdlib.h>
#include <sstream>
#include <cmath>
#include <mutex>
#include <boost/unordered_map.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/geometry/geometry.hpp>
namespace spatial {
using namespace std;
using namespace boost::geometry;
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#ifndef TO_DEGREES
#define TO_DEGREES 57.295779513082321
#endif
#ifndef TO_RADIANS
#define TO_RADIANS 0.0174532925199432958
#endif
#ifdef __GNUC__
#define NO_RETURN __attribute__((__noreturn__))
#else
#define NO_RETURN
#endif
void uasserted(int msgid, const char *msg) NO_RETURN;
#ifndef uassert
#define uassert(msgid, msg, expr) (void)( (bool)(!!(expr)) || (uasserted(msgid, msg), 0) )
#endif
typedef cs::geographic<degree> GeoDeg;
typedef cs::geographic<radian> GeoRad;
typedef cs::cartesian Cartesian;
} // namespace spatial