42 #include <QtCore/qmath.h> |
42 #include <QtCore/qmath.h> |
43 |
43 |
44 QT_BEGIN_NAMESPACE |
44 QT_BEGIN_NAMESPACE |
45 |
45 |
46 const qreal qt_sine_table[QT_SINE_TABLE_SIZE] = { |
46 const qreal qt_sine_table[QT_SINE_TABLE_SIZE] = { |
47 0.0, |
47 qreal(0.0), |
48 0.024541228522912288, |
48 qreal(0.024541228522912288), |
49 0.049067674327418015, |
49 qreal(0.049067674327418015), |
50 0.073564563599667426, |
50 qreal(0.073564563599667426), |
51 0.098017140329560604, |
51 qreal(0.098017140329560604), |
52 0.1224106751992162, |
52 qreal(0.1224106751992162), |
53 0.14673047445536175, |
53 qreal(0.14673047445536175), |
54 0.17096188876030122, |
54 qreal(0.17096188876030122), |
55 0.19509032201612825, |
55 qreal(0.19509032201612825), |
56 0.2191012401568698, |
56 qreal(0.2191012401568698), |
57 0.24298017990326387, |
57 qreal(0.24298017990326387), |
58 0.26671275747489837, |
58 qreal(0.26671275747489837), |
59 0.29028467725446233, |
59 qreal(0.29028467725446233), |
60 0.31368174039889152, |
60 qreal(0.31368174039889152), |
61 0.33688985339222005, |
61 qreal(0.33688985339222005), |
62 0.35989503653498811, |
62 qreal(0.35989503653498811), |
63 0.38268343236508978, |
63 qreal(0.38268343236508978), |
64 0.40524131400498986, |
64 qreal(0.40524131400498986), |
65 0.42755509343028208, |
65 qreal(0.42755509343028208), |
66 0.44961132965460654, |
66 qreal(0.44961132965460654), |
67 0.47139673682599764, |
67 qreal(0.47139673682599764), |
68 0.49289819222978404, |
68 qreal(0.49289819222978404), |
69 0.51410274419322166, |
69 qreal(0.51410274419322166), |
70 0.53499761988709715, |
70 qreal(0.53499761988709715), |
71 0.55557023301960218, |
71 qreal(0.55557023301960218), |
72 0.57580819141784534, |
72 qreal(0.57580819141784534), |
73 0.59569930449243336, |
73 qreal(0.59569930449243336), |
74 0.61523159058062682, |
74 qreal(0.61523159058062682), |
75 0.63439328416364549, |
75 qreal(0.63439328416364549), |
76 0.65317284295377676, |
76 qreal(0.65317284295377676), |
77 0.67155895484701833, |
77 qreal(0.67155895484701833), |
78 0.68954054473706683, |
78 qreal(0.68954054473706683), |
79 0.70710678118654746, |
79 qreal(0.70710678118654746), |
80 0.72424708295146689, |
80 qreal(0.72424708295146689), |
81 0.74095112535495911, |
81 qreal(0.74095112535495911), |
82 0.75720884650648446, |
82 qreal(0.75720884650648446), |
83 0.77301045336273699, |
83 qreal(0.77301045336273699), |
84 0.78834642762660623, |
84 qreal(0.78834642762660623), |
85 0.80320753148064483, |
85 qreal(0.80320753148064483), |
86 0.81758481315158371, |
86 qreal(0.81758481315158371), |
87 0.83146961230254524, |
87 qreal(0.83146961230254524), |
88 0.84485356524970701, |
88 qreal(0.84485356524970701), |
89 0.85772861000027212, |
89 qreal(0.85772861000027212), |
90 0.87008699110871135, |
90 qreal(0.87008699110871135), |
91 0.88192126434835494, |
91 qreal(0.88192126434835494), |
92 0.89322430119551532, |
92 qreal(0.89322430119551532), |
93 0.90398929312344334, |
93 qreal(0.90398929312344334), |
94 0.91420975570353069, |
94 qreal(0.91420975570353069), |
95 0.92387953251128674, |
95 qreal(0.92387953251128674), |
96 0.93299279883473885, |
96 qreal(0.93299279883473885), |
97 0.94154406518302081, |
97 qreal(0.94154406518302081), |
98 0.94952818059303667, |
98 qreal(0.94952818059303667), |
99 0.95694033573220894, |
99 qreal(0.95694033573220894), |
100 0.96377606579543984, |
100 qreal(0.96377606579543984), |
101 0.97003125319454397, |
101 qreal(0.97003125319454397), |
102 0.97570213003852857, |
102 qreal(0.97570213003852857), |
103 0.98078528040323043, |
103 qreal(0.98078528040323043), |
104 0.98527764238894122, |
104 qreal(0.98527764238894122), |
105 0.98917650996478101, |
105 qreal(0.98917650996478101), |
106 0.99247953459870997, |
106 qreal(0.99247953459870997), |
107 0.99518472667219682, |
107 qreal(0.99518472667219682), |
108 0.99729045667869021, |
108 qreal(0.99729045667869021), |
109 0.99879545620517241, |
109 qreal(0.99879545620517241), |
110 0.99969881869620425, |
110 qreal(0.99969881869620425), |
111 1.0, |
111 qreal(1.0), |
112 0.99969881869620425, |
112 qreal(0.99969881869620425), |
113 0.99879545620517241, |
113 qreal(0.99879545620517241), |
114 0.99729045667869021, |
114 qreal(0.99729045667869021), |
115 0.99518472667219693, |
115 qreal(0.99518472667219693), |
116 0.99247953459870997, |
116 qreal(0.99247953459870997), |
117 0.98917650996478101, |
117 qreal(0.98917650996478101), |
118 0.98527764238894122, |
118 qreal(0.98527764238894122), |
119 0.98078528040323043, |
119 qreal(0.98078528040323043), |
120 0.97570213003852857, |
120 qreal(0.97570213003852857), |
121 0.97003125319454397, |
121 qreal(0.97003125319454397), |
122 0.96377606579543984, |
122 qreal(0.96377606579543984), |
123 0.95694033573220894, |
123 qreal(0.95694033573220894), |
124 0.94952818059303667, |
124 qreal(0.94952818059303667), |
125 0.94154406518302081, |
125 qreal(0.94154406518302081), |
126 0.93299279883473885, |
126 qreal(0.93299279883473885), |
127 0.92387953251128674, |
127 qreal(0.92387953251128674), |
128 0.91420975570353069, |
128 qreal(0.91420975570353069), |
129 0.90398929312344345, |
129 qreal(0.90398929312344345), |
130 0.89322430119551521, |
130 qreal(0.89322430119551521), |
131 0.88192126434835505, |
131 qreal(0.88192126434835505), |
132 0.87008699110871146, |
132 qreal(0.87008699110871146), |
133 0.85772861000027212, |
133 qreal(0.85772861000027212), |
134 0.84485356524970723, |
134 qreal(0.84485356524970723), |
135 0.83146961230254546, |
135 qreal(0.83146961230254546), |
136 0.81758481315158371, |
136 qreal(0.81758481315158371), |
137 0.80320753148064494, |
137 qreal(0.80320753148064494), |
138 0.78834642762660634, |
138 qreal(0.78834642762660634), |
139 0.7730104533627371, |
139 qreal(0.7730104533627371), |
140 0.75720884650648468, |
140 qreal(0.75720884650648468), |
141 0.74095112535495899, |
141 qreal(0.74095112535495899), |
142 0.72424708295146689, |
142 qreal(0.72424708295146689), |
143 0.70710678118654757, |
143 qreal(0.70710678118654757), |
144 0.68954054473706705, |
144 qreal(0.68954054473706705), |
145 0.67155895484701855, |
145 qreal(0.67155895484701855), |
146 0.65317284295377664, |
146 qreal(0.65317284295377664), |
147 0.63439328416364549, |
147 qreal(0.63439328416364549), |
148 0.61523159058062693, |
148 qreal(0.61523159058062693), |
149 0.59569930449243347, |
149 qreal(0.59569930449243347), |
150 0.57580819141784545, |
150 qreal(0.57580819141784545), |
151 0.55557023301960218, |
151 qreal(0.55557023301960218), |
152 0.53499761988709715, |
152 qreal(0.53499761988709715), |
153 0.51410274419322177, |
153 qreal(0.51410274419322177), |
154 0.49289819222978415, |
154 qreal(0.49289819222978415), |
155 0.47139673682599786, |
155 qreal(0.47139673682599786), |
156 0.44961132965460687, |
156 qreal(0.44961132965460687), |
157 0.42755509343028203, |
157 qreal(0.42755509343028203), |
158 0.40524131400498992, |
158 qreal(0.40524131400498992), |
159 0.38268343236508989, |
159 qreal(0.38268343236508989), |
160 0.35989503653498833, |
160 qreal(0.35989503653498833), |
161 0.33688985339222033, |
161 qreal(0.33688985339222033), |
162 0.31368174039889141, |
162 qreal(0.31368174039889141), |
163 0.29028467725446239, |
163 qreal(0.29028467725446239), |
164 0.26671275747489848, |
164 qreal(0.26671275747489848), |
165 0.24298017990326407, |
165 qreal(0.24298017990326407), |
166 0.21910124015687005, |
166 qreal(0.21910124015687005), |
167 0.19509032201612861, |
167 qreal(0.19509032201612861), |
168 0.17096188876030122, |
168 qreal(0.17096188876030122), |
169 0.1467304744553618, |
169 qreal(0.1467304744553618), |
170 0.12241067519921635, |
170 qreal(0.12241067519921635), |
171 0.098017140329560826, |
171 qreal(0.098017140329560826), |
172 0.073564563599667732, |
172 qreal(0.073564563599667732), |
173 0.049067674327417966, |
173 qreal(0.049067674327417966), |
174 0.024541228522912326, |
174 qreal(0.024541228522912326), |
175 0.0, |
175 qreal(0.0), |
176 -0.02454122852291208, |
176 qreal(-0.02454122852291208), |
177 -0.049067674327417724, |
177 qreal(-0.049067674327417724), |
178 -0.073564563599667496, |
178 qreal(-0.073564563599667496), |
179 -0.09801714032956059, |
179 qreal(-0.09801714032956059), |
180 -0.1224106751992161, |
180 qreal(-0.1224106751992161), |
181 -0.14673047445536158, |
181 qreal(-0.14673047445536158), |
182 -0.17096188876030097, |
182 qreal(-0.17096188876030097), |
183 -0.19509032201612836, |
183 qreal(-0.19509032201612836), |
184 -0.2191012401568698, |
184 qreal(-0.2191012401568698), |
185 -0.24298017990326382, |
185 qreal(-0.24298017990326382), |
186 -0.26671275747489825, |
186 qreal(-0.26671275747489825), |
187 -0.29028467725446211, |
187 qreal(-0.29028467725446211), |
188 -0.31368174039889118, |
188 qreal(-0.31368174039889118), |
189 -0.33688985339222011, |
189 qreal(-0.33688985339222011), |
190 -0.35989503653498811, |
190 qreal(-0.35989503653498811), |
191 -0.38268343236508967, |
191 qreal(-0.38268343236508967), |
192 -0.40524131400498969, |
192 qreal(-0.40524131400498969), |
193 -0.42755509343028181, |
193 qreal(-0.42755509343028181), |
194 -0.44961132965460665, |
194 qreal(-0.44961132965460665), |
195 -0.47139673682599764, |
195 qreal(-0.47139673682599764), |
196 -0.49289819222978393, |
196 qreal(-0.49289819222978393), |
197 -0.51410274419322155, |
197 qreal(-0.51410274419322155), |
198 -0.53499761988709693, |
198 qreal(-0.53499761988709693), |
199 -0.55557023301960196, |
199 qreal(-0.55557023301960196), |
200 -0.57580819141784534, |
200 qreal(-0.57580819141784534), |
201 -0.59569930449243325, |
201 qreal(-0.59569930449243325), |
202 -0.61523159058062671, |
202 qreal(-0.61523159058062671), |
203 -0.63439328416364527, |
203 qreal(-0.63439328416364527), |
204 -0.65317284295377653, |
204 qreal(-0.65317284295377653), |
205 -0.67155895484701844, |
205 qreal(-0.67155895484701844), |
206 -0.68954054473706683, |
206 qreal(-0.68954054473706683), |
207 -0.70710678118654746, |
207 qreal(-0.70710678118654746), |
208 -0.72424708295146678, |
208 qreal(-0.72424708295146678), |
209 -0.74095112535495888, |
209 qreal(-0.74095112535495888), |
210 -0.75720884650648423, |
210 qreal(-0.75720884650648423), |
211 -0.77301045336273666, |
211 qreal(-0.77301045336273666), |
212 -0.78834642762660589, |
212 qreal(-0.78834642762660589), |
213 -0.80320753148064505, |
213 qreal(-0.80320753148064505), |
214 -0.81758481315158382, |
214 qreal(-0.81758481315158382), |
215 -0.83146961230254524, |
215 qreal(-0.83146961230254524), |
216 -0.84485356524970701, |
216 qreal(-0.84485356524970701), |
217 -0.85772861000027201, |
217 qreal(-0.85772861000027201), |
218 -0.87008699110871135, |
218 qreal(-0.87008699110871135), |
219 -0.88192126434835494, |
219 qreal(-0.88192126434835494), |
220 -0.89322430119551521, |
220 qreal(-0.89322430119551521), |
221 -0.90398929312344312, |
221 qreal(-0.90398929312344312), |
222 -0.91420975570353047, |
222 qreal(-0.91420975570353047), |
223 -0.92387953251128652, |
223 qreal(-0.92387953251128652), |
224 -0.93299279883473896, |
224 qreal(-0.93299279883473896), |
225 -0.94154406518302081, |
225 qreal(-0.94154406518302081), |
226 -0.94952818059303667, |
226 qreal(-0.94952818059303667), |
227 -0.95694033573220882, |
227 qreal(-0.95694033573220882), |
228 -0.96377606579543984, |
228 qreal(-0.96377606579543984), |
229 -0.97003125319454397, |
229 qreal(-0.97003125319454397), |
230 -0.97570213003852846, |
230 qreal(-0.97570213003852846), |
231 -0.98078528040323032, |
231 qreal(-0.98078528040323032), |
232 -0.98527764238894111, |
232 qreal(-0.98527764238894111), |
233 -0.9891765099647809, |
233 qreal(-0.9891765099647809), |
234 -0.99247953459871008, |
234 qreal(-0.99247953459871008), |
235 -0.99518472667219693, |
235 qreal(-0.99518472667219693), |
236 -0.99729045667869021, |
236 qreal(-0.99729045667869021), |
237 -0.99879545620517241, |
237 qreal(-0.99879545620517241), |
238 -0.99969881869620425, |
238 qreal(-0.99969881869620425), |
239 -1.0, |
239 qreal(-1.0), |
240 -0.99969881869620425, |
240 qreal(-0.99969881869620425), |
241 -0.99879545620517241, |
241 qreal(-0.99879545620517241), |
242 -0.99729045667869021, |
242 qreal(-0.99729045667869021), |
243 -0.99518472667219693, |
243 qreal(-0.99518472667219693), |
244 -0.99247953459871008, |
244 qreal(-0.99247953459871008), |
245 -0.9891765099647809, |
245 qreal(-0.9891765099647809), |
246 -0.98527764238894122, |
246 qreal(-0.98527764238894122), |
247 -0.98078528040323043, |
247 qreal(-0.98078528040323043), |
248 -0.97570213003852857, |
248 qreal(-0.97570213003852857), |
249 -0.97003125319454397, |
249 qreal(-0.97003125319454397), |
250 -0.96377606579543995, |
250 qreal(-0.96377606579543995), |
251 -0.95694033573220894, |
251 qreal(-0.95694033573220894), |
252 -0.94952818059303679, |
252 qreal(-0.94952818059303679), |
253 -0.94154406518302092, |
253 qreal(-0.94154406518302092), |
254 -0.93299279883473907, |
254 qreal(-0.93299279883473907), |
255 -0.92387953251128663, |
255 qreal(-0.92387953251128663), |
256 -0.91420975570353058, |
256 qreal(-0.91420975570353058), |
257 -0.90398929312344334, |
257 qreal(-0.90398929312344334), |
258 -0.89322430119551532, |
258 qreal(-0.89322430119551532), |
259 -0.88192126434835505, |
259 qreal(-0.88192126434835505), |
260 -0.87008699110871146, |
260 qreal(-0.87008699110871146), |
261 -0.85772861000027223, |
261 qreal(-0.85772861000027223), |
262 -0.84485356524970723, |
262 qreal(-0.84485356524970723), |
263 -0.83146961230254546, |
263 qreal(-0.83146961230254546), |
264 -0.81758481315158404, |
264 qreal(-0.81758481315158404), |
265 -0.80320753148064528, |
265 qreal(-0.80320753148064528), |
266 -0.78834642762660612, |
266 qreal(-0.78834642762660612), |
267 -0.77301045336273688, |
267 qreal(-0.77301045336273688), |
268 -0.75720884650648457, |
268 qreal(-0.75720884650648457), |
269 -0.74095112535495911, |
269 qreal(-0.74095112535495911), |
270 -0.724247082951467, |
270 qreal(-0.724247082951467), |
271 -0.70710678118654768, |
271 qreal(-0.70710678118654768), |
272 -0.68954054473706716, |
272 qreal(-0.68954054473706716), |
273 -0.67155895484701866, |
273 qreal(-0.67155895484701866), |
274 -0.65317284295377709, |
274 qreal(-0.65317284295377709), |
275 -0.63439328416364593, |
275 qreal(-0.63439328416364593), |
276 -0.61523159058062737, |
276 qreal(-0.61523159058062737), |
277 -0.59569930449243325, |
277 qreal(-0.59569930449243325), |
278 -0.57580819141784523, |
278 qreal(-0.57580819141784523), |
279 -0.55557023301960218, |
279 qreal(-0.55557023301960218), |
280 -0.53499761988709726, |
280 qreal(-0.53499761988709726), |
281 -0.51410274419322188, |
281 qreal(-0.51410274419322188), |
282 -0.49289819222978426, |
282 qreal(-0.49289819222978426), |
283 -0.47139673682599792, |
283 qreal(-0.47139673682599792), |
284 -0.44961132965460698, |
284 qreal(-0.44961132965460698), |
285 -0.42755509343028253, |
285 qreal(-0.42755509343028253), |
286 -0.40524131400499042, |
286 qreal(-0.40524131400499042), |
287 -0.38268343236509039, |
287 qreal(-0.38268343236509039), |
288 -0.359895036534988, |
288 qreal(-0.359895036534988), |
289 -0.33688985339222, |
289 qreal(-0.33688985339222), |
290 -0.31368174039889152, |
290 qreal(-0.31368174039889152), |
291 -0.2902846772544625, |
291 qreal(-0.2902846772544625), |
292 -0.26671275747489859, |
292 qreal(-0.26671275747489859), |
293 -0.24298017990326418, |
293 qreal(-0.24298017990326418), |
294 -0.21910124015687016, |
294 qreal(-0.21910124015687016), |
295 -0.19509032201612872, |
295 qreal(-0.19509032201612872), |
296 -0.17096188876030177, |
296 qreal(-0.17096188876030177), |
297 -0.14673047445536239, |
297 qreal(-0.14673047445536239), |
298 -0.12241067519921603, |
298 qreal(-0.12241067519921603), |
299 -0.098017140329560506, |
299 qreal(-0.098017140329560506), |
300 -0.073564563599667412, |
300 qreal(-0.073564563599667412), |
301 -0.049067674327418091, |
301 qreal(-0.049067674327418091), |
302 -0.024541228522912448 |
302 qreal(-0.024541228522912448) |
303 }; |
303 }; |
304 |
304 |
305 QT_END_NAMESPACE |
305 QT_END_NAMESPACE |