GeographicLib: AuxAngle.hpp Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18#if !defined(GEOGRAPHICLIB_AUXANGLE_HPP)
19#define GEOGRAPHICLIB_AUXANGLE_HPP 1
20
22
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
48 private:
50 real _y, _x;
51 public:
52
53
54
55
56
57
58
59
60
61
62
63
64
65 explicit AuxAngle(real y = 0, real x = 1) : _y(y), _x(x) {}
66
67
68
69
71
72
73
74
76
77
78
79
81
82
83
84
86
87
88
89
91
92
93
94
96
97
98
99
100
101
103
104
105
106
107
108
110
111
112
114
115
116
117
118
120
121
122
123
125
126
127
128
129
130
132
133
134
135
136
137
138
139
140
141
142
144
145
146
147
148
149
150
151
152
153
154
156
157
158
159
160
161
162
163
164
165
166
168
169
170
171
172
173
174
175
176
177
178
179
180
182
183
184
185
186
187
188
189
190
191
192
193
194
195
197
198
199
201 };
202
208
210 using std::sin; using std::cos;
211 return AuxAngle(sin(r), cos(r));
212 }
213
215 using std::sinh;
217 }
218
220 using std::sinh;
222 }
223
227
229 using std::atan2; return atan2(_y, _x);
230 }
231
233 using std::asinh; return asinh( tan() );
234 }
235
239
240}
241
242#endif
#define GEOGRAPHICLIB_EXPORT
GeographicLib::Math::real real
Header for GeographicLib::Math class.
An accurate representation of angles.
Definition AuxAngle.hpp:47
Math::real y() const
Definition AuxAngle.hpp:70
Math::real x() const
Definition AuxAngle.hpp:75
Math::real radians() const
Definition AuxAngle.hpp:228
Math::real degrees() const
Definition AuxAngle.hpp:224
Math::real & y()
Definition AuxAngle.hpp:80
Math::real lamd() const
Definition AuxAngle.hpp:236
void normalize()
Definition AuxAngle.hpp:124
Math::real lam() const
Definition AuxAngle.hpp:232
Math::real tan() const
Definition AuxAngle.hpp:113
AuxAngle(real y=0, real x=1)
Definition AuxAngle.hpp:65
Math::real & x()
Definition AuxAngle.hpp:85
static void sincosd(T x, T &sinx, T &cosx)
static T atan2d(T y, T x)
Namespace for GeographicLib.