-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpch.h
More file actions
46 lines (37 loc) · 871 Bytes
/
pch.h
File metadata and controls
46 lines (37 loc) · 871 Bytes
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
#ifndef PCH_H
#define PCH_H
// #include <float.h>
#include <math.h>
#include <stdint.h>
#include <string.h>
#include <algorithm>
#include <functional>
#include <map>
#include <set>
#include <string>
#include <vector>
#ifdef _DEBUG
#include <cassert>
#endif
#define SINDY_ZERO 0.0000001 // 1e-7
#define SINDY_DEFAULT_DOUBLE 0.0
#define SINDY_PRECISION 1e-8
#ifndef PI
#define PI 3.14159265358979323846 // pi
#define PI2 6.28318530717958623200 // pi*2
#define PI_2 1.57079632679489661923 // pi/2
#define PI_4 0.785398163397448309616 // pi/4
#endif
#define RADIAN_0 0.0
#define RADIAN_90 PI_2
#define RADIAN_180 PI
#define RADIAN_270 4.71238898038468967400
#define RADIAN_360 PI2
// 时钟方向
enum class ClockDirection
{
eUnknownClockwise,
eClockwise, // 顺时针
eCounterClockwise, // 逆时针
};
#endif // !PCH_H