| Line | Source Code | Coverage |
|---|
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | static qreal easeNone(qreal progress) | - |
| 10 | { | - |
| 11 | return progress; executed: return progress;Execution Count:2860 | 2860 |
| 12 | } | - |
| 13 | | - |
| 14 | | - |
| 15 | | - |
| 16 | | - |
| 17 | | - |
| 18 | | - |
| 19 | | - |
| 20 | static qreal easeInQuad(qreal t) | - |
| 21 | { | - |
| 22 | return t*t; executed: return t*t;Execution Count:19 | 19 |
| 23 | } | - |
| 24 | | - |
| 25 | | - |
| 26 | | - |
| 27 | | - |
| 28 | | - |
| 29 | | - |
| 30 | | - |
| 31 | static qreal easeOutQuad(qreal t) | - |
| 32 | { | - |
| 33 | return -t*(t-2); executed: return -t*(t-2);Execution Count:261 | 261 |
| 34 | } | - |
| 35 | | - |
| 36 | | - |
| 37 | | - |
| 38 | | - |
| 39 | | - |
| 40 | | - |
| 41 | | - |
| 42 | static qreal easeInOutQuad(qreal t) | - |
| 43 | { | - |
| 44 | t*=2.0; | - |
| 45 | if (t < 1) { evaluated: t < 1| yes Evaluation Count:43 | yes Evaluation Count:570 |
| 43-570 |
| 46 | return t*t/qreal(2); executed: return t*t/qreal(2);Execution Count:43 | 43 |
| 47 | } else { | - |
| 48 | --t; | - |
| 49 | return -0.5 * (t*(t-2) - 1); executed: return -0.5 * (t*(t-2) - 1);Execution Count:570 | 570 |
| 50 | } | - |
| 51 | } | - |
| 52 | | - |
| 53 | | - |
| 54 | | - |
| 55 | | - |
| 56 | | - |
| 57 | | - |
| 58 | | - |
| 59 | static qreal easeOutInQuad(qreal t) | - |
| 60 | { | - |
| 61 | if (t < 0.5) return easeOutQuad (t*2)/2; executed: return easeOutQuad (t*2)/2;Execution Count:5 evaluated: t < 0.5| yes Evaluation Count:5 | yes Evaluation Count:6 |
| 5-6 |
| 62 | return easeInQuad((2*t)-1)/2 + 0.5; executed: return easeInQuad((2*t)-1)/2 + 0.5;Execution Count:6 | 6 |
| 63 | } | - |
| 64 | | - |
| 65 | | - |
| 66 | | - |
| 67 | | - |
| 68 | | - |
| 69 | | - |
| 70 | | - |
| 71 | static qreal easeInCubic(qreal t) | - |
| 72 | { | - |
| 73 | return t*t*t; executed: return t*t*t;Execution Count:17 | 17 |
| 74 | } | - |
| 75 | | - |
| 76 | | - |
| 77 | | - |
| 78 | | - |
| 79 | | - |
| 80 | | - |
| 81 | | - |
| 82 | static qreal easeOutCubic(qreal t) | - |
| 83 | { | - |
| 84 | t-=1.0; | - |
| 85 | return t*t*t + 1; executed: return t*t*t + 1;Execution Count:16 | 16 |
| 86 | } | - |
| 87 | | - |
| 88 | | - |
| 89 | | - |
| 90 | | - |
| 91 | | - |
| 92 | | - |
| 93 | | - |
| 94 | static qreal easeInOutCubic(qreal t) | - |
| 95 | { | - |
| 96 | t*=2.0; | - |
| 97 | if(t < 1) { evaluated: t < 1| yes Evaluation Count:5 | yes Evaluation Count:6 |
| 5-6 |
| 98 | return 0.5*t*t*t; executed: return 0.5*t*t*t;Execution Count:5 | 5 |
| 99 | } else { | - |
| 100 | t -= qreal(2.0); | - |
| 101 | return 0.5*(t*t*t + 2); executed: return 0.5*(t*t*t + 2);Execution Count:6 | 6 |
| 102 | } | - |
| 103 | } | - |
| 104 | | - |
| 105 | | - |
| 106 | | - |
| 107 | | - |
| 108 | | - |
| 109 | | - |
| 110 | | - |
| 111 | static qreal easeOutInCubic(qreal t) | - |
| 112 | { | - |
| 113 | if (t < 0.5) return easeOutCubic (2*t)/2; executed: return easeOutCubic (2*t)/2;Execution Count:5 evaluated: t < 0.5| yes Evaluation Count:5 | yes Evaluation Count:6 |
| 5-6 |
| 114 | return easeInCubic(2*t - 1)/2 + 0.5; executed: return easeInCubic(2*t - 1)/2 + 0.5;Execution Count:6 | 6 |
| 115 | } | - |
| 116 | | - |
| 117 | | - |
| 118 | | - |
| 119 | | - |
| 120 | | - |
| 121 | | - |
| 122 | | - |
| 123 | static qreal easeInQuart(qreal t) | - |
| 124 | { | - |
| 125 | return t*t*t*t; executed: return t*t*t*t;Execution Count:17 | 17 |
| 126 | } | - |
| 127 | | - |
| 128 | | - |
| 129 | | - |
| 130 | | - |
| 131 | | - |
| 132 | | - |
| 133 | | - |
| 134 | static qreal easeOutQuart(qreal t) | - |
| 135 | { | - |
| 136 | t-= qreal(1.0); | - |
| 137 | return - (t*t*t*t- 1); executed: return - (t*t*t*t- 1);Execution Count:16 | 16 |
| 138 | } | - |
| 139 | | - |
| 140 | | - |
| 141 | | - |
| 142 | | - |
| 143 | | - |
| 144 | | - |
| 145 | | - |
| 146 | static qreal easeInOutQuart(qreal t) | - |
| 147 | { | - |
| 148 | t*=2; | - |
| 149 | if (t < 1) return 0.5*t*t*t*t; evaluated: t < 1| yes Evaluation Count:5 | yes Evaluation Count:6 |
executed: return 0.5*t*t*t*t;Execution Count:5 | 5-6 |
| 150 | else { | - |
| 151 | t -= 2.0f; | - |
| 152 | return -0.5 * (t*t*t*t- 2); executed: return -0.5 * (t*t*t*t- 2);Execution Count:6 | 6 |
| 153 | } | - |
| 154 | } | - |
| 155 | | - |
| 156 | | - |
| 157 | | - |
| 158 | | - |
| 159 | | - |
| 160 | | - |
| 161 | | - |
| 162 | static qreal easeOutInQuart(qreal t) | - |
| 163 | { | - |
| 164 | if (t < 0.5) return easeOutQuart (2*t)/2; executed: return easeOutQuart (2*t)/2;Execution Count:5 evaluated: t < 0.5| yes Evaluation Count:5 | yes Evaluation Count:6 |
| 5-6 |
| 165 | return easeInQuart(2*t-1)/2 + 0.5; executed: return easeInQuart(2*t-1)/2 + 0.5;Execution Count:6 | 6 |
| 166 | } | - |
| 167 | | - |
| 168 | | - |
| 169 | | - |
| 170 | | - |
| 171 | | - |
| 172 | | - |
| 173 | | - |
| 174 | static qreal easeInQuint(qreal t) | - |
| 175 | { | - |
| 176 | return t*t*t*t*t; executed: return t*t*t*t*t;Execution Count:17 | 17 |
| 177 | } | - |
| 178 | | - |
| 179 | | - |
| 180 | | - |
| 181 | | - |
| 182 | | - |
| 183 | | - |
| 184 | | - |
| 185 | static qreal easeOutQuint(qreal t) | - |
| 186 | { | - |
| 187 | t-=1.0; | - |
| 188 | return t*t*t*t*t + 1; executed: return t*t*t*t*t + 1;Execution Count:16 | 16 |
| 189 | } | - |
| 190 | | - |
| 191 | | - |
| 192 | | - |
| 193 | | - |
| 194 | | - |
| 195 | | - |
| 196 | | - |
| 197 | static qreal easeInOutQuint(qreal t) | - |
| 198 | { | - |
| 199 | t*=2.0; | - |
| 200 | if (t < 1) return 0.5*t*t*t*t*t; evaluated: t < 1| yes Evaluation Count:5 | yes Evaluation Count:6 |
executed: return 0.5*t*t*t*t*t;Execution Count:5 | 5-6 |
| 201 | else { | - |
| 202 | t -= 2.0; | - |
| 203 | return 0.5*(t*t*t*t*t + 2); executed: return 0.5*(t*t*t*t*t + 2);Execution Count:6 | 6 |
| 204 | } | - |
| 205 | } | - |
| 206 | | - |
| 207 | | - |
| 208 | | - |
| 209 | | - |
| 210 | | - |
| 211 | | - |
| 212 | | - |
| 213 | static qreal easeOutInQuint(qreal t) | - |
| 214 | { | - |
| 215 | if (t < 0.5) return easeOutQuint (2*t)/2; executed: return easeOutQuint (2*t)/2;Execution Count:5 evaluated: t < 0.5| yes Evaluation Count:5 | yes Evaluation Count:6 |
| 5-6 |
| 216 | return easeInQuint(2*t - 1)/2 + 0.5; executed: return easeInQuint(2*t - 1)/2 + 0.5;Execution Count:6 | 6 |
| 217 | } | - |
| 218 | | - |
| 219 | | - |
| 220 | | - |
| 221 | | - |
| 222 | | - |
| 223 | | - |
| 224 | | - |
| 225 | static qreal easeInSine(qreal t) | - |
| 226 | { | - |
| 227 | return (t == 1.0) ? 1.0 : -::qCos(t * 1.57079632679489661923) + 1.0; executed: return (t == 1.0) ? 1.0 : -::qCos(t * 1.57079632679489661923) + 1.0;Execution Count:17 | 17 |
| 228 | } | - |
| 229 | | - |
| 230 | | - |
| 231 | | - |
| 232 | | - |
| 233 | | - |
| 234 | | - |
| 235 | | - |
| 236 | static qreal easeOutSine(qreal t) | - |
| 237 | { | - |
| 238 | return ::qSin(t* 1.57079632679489661923); executed: return ::qSin(t* 1.57079632679489661923);Execution Count:16 | 16 |
| 239 | } | - |
| 240 | | - |
| 241 | | - |
| 242 | | - |
| 243 | | - |
| 244 | | - |
| 245 | | - |
| 246 | | - |
| 247 | static qreal easeInOutSine(qreal t) | - |
| 248 | { | - |
| 249 | return -0.5 * (::qCos(3.14159265358979323846*t) - 1); executed: return -0.5 * (::qCos(3.14159265358979323846*t) - 1);Execution Count:7069 | 7069 |
| 250 | } | - |
| 251 | | - |
| 252 | | - |
| 253 | | - |
| 254 | | - |
| 255 | | - |
| 256 | | - |
| 257 | | - |
| 258 | static qreal easeOutInSine(qreal t) | - |
| 259 | { | - |
| 260 | if (t < 0.5) return easeOutSine (2*t)/2; executed: return easeOutSine (2*t)/2;Execution Count:5 evaluated: t < 0.5| yes Evaluation Count:5 | yes Evaluation Count:6 |
| 5-6 |
| 261 | return easeInSine(2*t - 1)/2 + 0.5; executed: return easeInSine(2*t - 1)/2 + 0.5;Execution Count:6 | 6 |
| 262 | } | - |
| 263 | | - |
| 264 | | - |
| 265 | | - |
| 266 | | - |
| 267 | | - |
| 268 | | - |
| 269 | | - |
| 270 | static qreal easeInExpo(qreal t) | - |
| 271 | { | - |
| 272 | return (t==0 || t == 1.0) ? t : ::qPow(2.0, 10 * (t - 1)) - qreal(0.001); executed: return (t==0 || t == 1.0) ? t : ::qPow(2.0, 10 * (t - 1)) - qreal(0.001);Execution Count:17 | 17 |
| 273 | } | - |
| 274 | | - |
| 275 | | - |
| 276 | | - |
| 277 | | - |
| 278 | | - |
| 279 | | - |
| 280 | | - |
| 281 | static qreal easeOutExpo(qreal t) | - |
| 282 | { | - |
| 283 | return (t==1.0) ? 1.0 : 1.001 * (-::qPow(2.0f, -10 * t) + 1); executed: return (t==1.0) ? 1.0 : 1.001 * (-::qPow(2.0f, -10 * t) + 1);Execution Count:16 | 16 |
| 284 | } | - |
| 285 | | - |
| 286 | | - |
| 287 | | - |
| 288 | | - |
| 289 | | - |
| 290 | | - |
| 291 | | - |
| 292 | static qreal easeInOutExpo(qreal t) | - |
| 293 | { | - |
| 294 | if (t==0.0) return qreal(0.0); executed: return qreal(0.0);Execution Count:1 evaluated: t==0.0| yes Evaluation Count:1 | yes Evaluation Count:10 |
| 1-10 |
| 295 | if (t==1.0) return qreal(1.0); executed: return qreal(1.0);Execution Count:1 evaluated: t==1.0| yes Evaluation Count:1 | yes Evaluation Count:9 |
| 1-9 |
| 296 | t*=2.0; | - |
| 297 | if (t < 1) return 0.5 * ::qPow(qreal(2.0), 10 * (t - 1)) - 0.0005; executed: return 0.5 * ::qPow(qreal(2.0), 10 * (t - 1)) - 0.0005;Execution Count:4 evaluated: t < 1| yes Evaluation Count:4 | yes Evaluation Count:5 |
| 4-5 |
| 298 | return 0.5 * 1.0005 * (-::qPow(qreal(2.0), -10 * (t - 1)) + 2); executed: return 0.5 * 1.0005 * (-::qPow(qreal(2.0), -10 * (t - 1)) + 2);Execution Count:5 | 5 |
| 299 | } | - |
| 300 | | - |
| 301 | | - |
| 302 | | - |
| 303 | | - |
| 304 | | - |
| 305 | | - |
| 306 | | - |
| 307 | static qreal easeOutInExpo(qreal t) | - |
| 308 | { | - |
| 309 | if (t < 0.5) return easeOutExpo (2*t)/2; executed: return easeOutExpo (2*t)/2;Execution Count:5 evaluated: t < 0.5| yes Evaluation Count:5 | yes Evaluation Count:6 |
| 5-6 |
| 310 | return easeInExpo(2*t - 1)/2 + 0.5; executed: return easeInExpo(2*t - 1)/2 + 0.5;Execution Count:6 | 6 |
| 311 | } | - |
| 312 | | - |
| 313 | | - |
| 314 | | - |
| 315 | | - |
| 316 | | - |
| 317 | | - |
| 318 | | - |
| 319 | static qreal easeInCirc(qreal t) | - |
| 320 | { | - |
| 321 | return -(::sqrt(1 - t*t) - 1); executed: return -(::sqrt(1 - t*t) - 1);Execution Count:17 | 17 |
| 322 | } | - |
| 323 | | - |
| 324 | | - |
| 325 | | - |
| 326 | | - |
| 327 | | - |
| 328 | | - |
| 329 | | - |
| 330 | static qreal easeOutCirc(qreal t) | - |
| 331 | { | - |
| 332 | t-= qreal(1.0); | - |
| 333 | return ::sqrt(1 - t* t); executed: return ::sqrt(1 - t* t);Execution Count:16 | 16 |
| 334 | } | - |
| 335 | | - |
| 336 | | - |
| 337 | | - |
| 338 | | - |
| 339 | | - |
| 340 | | - |
| 341 | | - |
| 342 | static qreal easeInOutCirc(qreal t) | - |
| 343 | { | - |
| 344 | t*=qreal(2.0); | - |
| 345 | if (t < 1) { evaluated: t < 1| yes Evaluation Count:5 | yes Evaluation Count:6 |
| 5-6 |
| 346 | return -0.5 * (::sqrt(1 - t*t) - 1); executed: return -0.5 * (::sqrt(1 - t*t) - 1);Execution Count:5 | 5 |
| 347 | } else { | - |
| 348 | t -= qreal(2.0); | - |
| 349 | return 0.5 * (::sqrt(1 - t*t) + 1); executed: return 0.5 * (::sqrt(1 - t*t) + 1);Execution Count:6 | 6 |
| 350 | } | - |
| 351 | } | - |
| 352 | | - |
| 353 | | - |
| 354 | | - |
| 355 | | - |
| 356 | | - |
| 357 | | - |
| 358 | | - |
| 359 | static qreal easeOutInCirc(qreal t) | - |
| 360 | { | - |
| 361 | if (t < 0.5) return easeOutCirc (2*t)/2; executed: return easeOutCirc (2*t)/2;Execution Count:5 evaluated: t < 0.5| yes Evaluation Count:5 | yes Evaluation Count:6 |
| 5-6 |
| 362 | return easeInCirc(2*t - 1)/2 + 0.5; executed: return easeInCirc(2*t - 1)/2 + 0.5;Execution Count:6 | 6 |
| 363 | } | - |
| 364 | | - |
| 365 | static qreal easeInElastic_helper(qreal t, qreal b, qreal c, qreal d, qreal a, qreal p) | - |
| 366 | { | - |
| 367 | if (t==0) return b; executed: return b;Execution Count:2 evaluated: t==0| yes Evaluation Count:2 | yes Evaluation Count:15 |
| 2-15 |
| 368 | qreal t_adj = (qreal)t / (qreal)d; | - |
| 369 | if (t_adj==1) return b+c; executed: return b+c;Execution Count:2 evaluated: t_adj==1| yes Evaluation Count:2 | yes Evaluation Count:13 |
| 2-13 |
| 370 | | - |
| 371 | qreal s; | - |
| 372 | if(a < ::qFabs(c)) { partially evaluated: a < ::qFabs(c)| no Evaluation Count:0 | yes Evaluation Count:13 |
| 0-13 |
| 373 | a = c; | - |
| 374 | s = p / 4.0f; | - |
| 375 | } else { | 0 |
| 376 | s = p / (2 * 3.14159265358979323846) * ::qAsin(c / a); | - |
| 377 | } executed: }Execution Count:13 | 13 |
| 378 | | - |
| 379 | t_adj -= 1.0f; | - |
| 380 | return -(a*::qPow(2.0f,10*t_adj) * ::qSin( (t_adj*d-s)*(2*3.14159265358979323846)/p )) + b; executed: return -(a*::qPow(2.0f,10*t_adj) * ::qSin( (t_adj*d-s)*(2*3.14159265358979323846)/p )) + b;Execution Count:13 | 13 |
| 381 | } | - |
| 382 | static qreal easeInElastic(qreal t, qreal a, qreal p) | - |
| 383 | { | - |
| 384 | return easeInElastic_helper(t, 0, 1, 1, a, p); executed: return easeInElastic_helper(t, 0, 1, 1, a, p);Execution Count:11 | 11 |
| 385 | } | - |
| 386 | | - |
| 387 | static qreal easeOutElastic_helper(qreal t, qreal , qreal c, qreal , qreal a, qreal p) | - |
| 388 | { | - |
| 389 | if (t==0) return 0; executed: return 0;Execution Count:2 evaluated: t==0| yes Evaluation Count:2 | yes Evaluation Count:14 |
| 2-14 |
| 390 | if (t==1) return c; evaluated: t==1| yes Evaluation Count:1 | yes Evaluation Count:13 |
executed: return c;Execution Count:1 | 1-13 |
| 391 | | - |
| 392 | qreal s; | - |
| 393 | if(a < c) { partially evaluated: a < c| no Evaluation Count:0 | yes Evaluation Count:13 |
| 0-13 |
| 394 | a = c; | - |
| 395 | s = p / 4.0f; | - |
| 396 | } else { | 0 |
| 397 | s = p / (2 * 3.14159265358979323846) * ::qAsin(c / a); | - |
| 398 | } executed: }Execution Count:13 | 13 |
| 399 | | - |
| 400 | return (a*::qPow(2.0f,-10*t) * ::qSin( (t-s)*(2*3.14159265358979323846)/p ) + c); executed: return (a*::qPow(2.0f,-10*t) * ::qSin( (t-s)*(2*3.14159265358979323846)/p ) + c);Execution Count:13 | 13 |
| 401 | } | - |
| 402 | static qreal easeOutElastic(qreal t, qreal a, qreal p) | - |
| 403 | { | - |
| 404 | return easeOutElastic_helper(t, 0, 1, 1, a, p); executed: return easeOutElastic_helper(t, 0, 1, 1, a, p);Execution Count:11 | 11 |
| 405 | } | - |
| 406 | static qreal easeInOutElastic(qreal t, qreal a, qreal p) | - |
| 407 | { | - |
| 408 | if (t==0) return 0.0; evaluated: t==0| yes Evaluation Count:1 | yes Evaluation Count:10 |
executed: return 0.0;Execution Count:1 | 1-10 |
| 409 | t*=2.0; | - |
| 410 | if (t==2) return 1.0; evaluated: t==2| yes Evaluation Count:1 | yes Evaluation Count:9 |
executed: return 1.0;Execution Count:1 | 1-9 |
| 411 | | - |
| 412 | qreal s; | - |
| 413 | if(a < 1.0) { partially evaluated: a < 1.0| no Evaluation Count:0 | yes Evaluation Count:9 |
| 0-9 |
| 414 | a = 1.0; | - |
| 415 | s = p / 4.0f; | - |
| 416 | } else { | 0 |
| 417 | s = p / (2 * 3.14159265358979323846) * ::qAsin(1.0 / a); | - |
| 418 | } executed: }Execution Count:9 | 9 |
| 419 | | - |
| 420 | if (t < 1) return -.5*(a*::qPow(2.0f,10*(t-1)) * ::qSin( (t-1-s)*(2*3.14159265358979323846)/p )); evaluated: t < 1| yes Evaluation Count:4 | yes Evaluation Count:5 |
executed: return -.5*(a*::qPow(2.0f,10*(t-1)) * ::qSin( (t-1-s)*(2*3.14159265358979323846)/p ));Execution Count:4 | 4-5 |
| 421 | return a*::qPow(2.0f,-10*(t-1)) * ::qSin( (t-1-s)*(2*3.14159265358979323846)/p )*.5 + 1.0; executed: return a*::qPow(2.0f,-10*(t-1)) * ::qSin( (t-1-s)*(2*3.14159265358979323846)/p )*.5 + 1.0;Execution Count:5 | 5 |
| 422 | } | - |
| 423 | static qreal easeOutInElastic(qreal t, qreal a, qreal p) | - |
| 424 | { | - |
| 425 | if (t < 0.5) return easeOutElastic_helper(t*2, 0, 0.5, 1.0, a, p); evaluated: t < 0.5| yes Evaluation Count:5 | yes Evaluation Count:6 |
executed: return easeOutElastic_helper(t*2, 0, 0.5, 1.0, a, p);Execution Count:5 | 5-6 |
| 426 | return easeInElastic_helper(2*t - 1.0, 0.5, 0.5, 1.0, a, p); executed: return easeInElastic_helper(2*t - 1.0, 0.5, 0.5, 1.0, a, p);Execution Count:6 | 6 |
| 427 | } | - |
| 428 | static qreal easeInBack(qreal t, qreal s) | - |
| 429 | { | - |
| 430 | return t*t*((s+1)*t - s); executed: return t*t*((s+1)*t - s);Execution Count:17 | 17 |
| 431 | } | - |
| 432 | static qreal easeOutBack(qreal t, qreal s) | - |
| 433 | { | - |
| 434 | t-= qreal(1.0); | - |
| 435 | return t*t*((s+1)*t+ s) + 1; executed: return t*t*((s+1)*t+ s) + 1;Execution Count:16 | 16 |
| 436 | } | - |
| 437 | static qreal easeInOutBack(qreal t, qreal s) | - |
| 438 | { | - |
| 439 | t *= 2.0; | - |
| 440 | if (t < 1) { evaluated: t < 1| yes Evaluation Count:5 | yes Evaluation Count:6 |
| 5-6 |
| 441 | s *= 1.525f; | - |
| 442 | return 0.5*(t*t*((s+1)*t - s)); executed: return 0.5*(t*t*((s+1)*t - s));Execution Count:5 | 5 |
| 443 | } else { | - |
| 444 | t -= 2; | - |
| 445 | s *= 1.525f; | - |
| 446 | return 0.5*(t*t*((s+1)*t+ s) + 2); executed: return 0.5*(t*t*((s+1)*t+ s) + 2);Execution Count:6 | 6 |
| 447 | } | - |
| 448 | } | - |
| 449 | static qreal easeOutInBack(qreal t, qreal s) | - |
| 450 | { | - |
| 451 | if (t < 0.5) return easeOutBack (2*t, s)/2; evaluated: t < 0.5| yes Evaluation Count:5 | yes Evaluation Count:6 |
executed: return easeOutBack (2*t, s)/2;Execution Count:5 | 5-6 |
| 452 | return easeInBack(2*t - 1, s)/2 + 0.5; executed: return easeInBack(2*t - 1, s)/2 + 0.5;Execution Count:6 | 6 |
| 453 | } | - |
| 454 | | - |
| 455 | static qreal easeOutBounce_helper(qreal t, qreal c, qreal a) | - |
| 456 | { | - |
| 457 | if (t == 1.0) return c; evaluated: t == 1.0| yes Evaluation Count:4 | yes Evaluation Count:39 |
executed: return c;Execution Count:4 | 4-39 |
| 458 | if (t < (4/11.0)) { evaluated: t < (4/11.0)| yes Evaluation Count:15 | yes Evaluation Count:24 |
| 15-24 |
| 459 | return c*(7.5625*t*t); executed: return c*(7.5625*t*t);Execution Count:15 | 15 |
| 460 | } else if (t < (8/11.0)) { evaluated: t < (8/11.0)| yes Evaluation Count:16 | yes Evaluation Count:8 |
| 8-16 |
| 461 | t -= (6/11.0); | - |
| 462 | return -a * (1. - (7.5625*t*t + .75)) + c; executed: return -a * (1. - (7.5625*t*t + .75)) + c;Execution Count:16 | 16 |
| 463 | } else if (t < (10/11.0)) { partially evaluated: t < (10/11.0)| yes Evaluation Count:8 | no Evaluation Count:0 |
| 0-8 |
| 464 | t -= (9/11.0); | - |
| 465 | return -a * (1. - (7.5625*t*t + .9375)) + c; executed: return -a * (1. - (7.5625*t*t + .9375)) + c;Execution Count:8 | 8 |
| 466 | } else { | - |
| 467 | t -= (21/22.0); | - |
| 468 | return -a * (1. - (7.5625*t*t + .984375)) + c; never executed: return -a * (1. - (7.5625*t*t + .984375)) + c; | 0 |
| 469 | } | - |
| 470 | } | - |
| 471 | static qreal easeOutBounce(qreal t, qreal a) | - |
| 472 | { | - |
| 473 | return easeOutBounce_helper(t, 1, a); executed: return easeOutBounce_helper(t, 1, a);Execution Count:16 | 16 |
| 474 | } | - |
| 475 | static qreal easeInBounce(qreal t, qreal a) | - |
| 476 | { | - |
| 477 | return 1.0 - easeOutBounce_helper(1.0-t, 1.0, a); executed: return 1.0 - easeOutBounce_helper(1.0-t, 1.0, a);Execution Count:16 | 16 |
| 478 | } | - |
| 479 | static qreal easeInOutBounce(qreal t, qreal a) | - |
| 480 | { | - |
| 481 | if (t < 0.5) return easeInBounce (2*t, a)/2; evaluated: t < 0.5| yes Evaluation Count:5 | yes Evaluation Count:6 |
executed: return easeInBounce (2*t, a)/2;Execution Count:5 | 5-6 |
| 482 | else return (t == 1.0) ? 1.0 : easeOutBounce (2*t - 1, a)/2 + 0.5; executed: return (t == 1.0) ? 1.0 : easeOutBounce (2*t - 1, a)/2 + 0.5;Execution Count:6 | 6 |
| 483 | } | - |
| 484 | static qreal easeOutInBounce(qreal t, qreal a) | - |
| 485 | { | - |
| 486 | if (t < 0.5) return easeOutBounce_helper(t*2, 0.5, a); evaluated: t < 0.5| yes Evaluation Count:5 | yes Evaluation Count:6 |
executed: return easeOutBounce_helper(t*2, 0.5, a);Execution Count:5 | 5-6 |
| 487 | return 1.0 - easeOutBounce_helper (2.0-2*t, 0.5, a); executed: return 1.0 - easeOutBounce_helper (2.0-2*t, 0.5, a);Execution Count:6 | 6 |
| 488 | } | - |
| 489 | | - |
| 490 | static inline qreal qt_sinProgress(qreal value) | - |
| 491 | { | - |
| 492 | return qSin((value * 3.14159265358979323846) - 1.57079632679489661923) / 2 + qreal(0.5); executed: return qSin((value * 3.14159265358979323846) - 1.57079632679489661923) / 2 + qreal(0.5);Execution Count:22 | 22 |
| 493 | } | - |
| 494 | | - |
| 495 | static inline qreal qt_smoothBeginEndMixFactor(qreal value) | - |
| 496 | { | - |
| 497 | return qMin(qMax(1 - value * 2 + qreal(0.3), qreal(0.0)), qreal(1.0)); executed: return qMin(qMax(1 - value * 2 + qreal(0.3), qreal(0.0)), qreal(1.0));Execution Count:22 | 22 |
| 498 | } | - |
| 499 | static qreal easeInCurve(qreal t) | - |
| 500 | { | - |
| 501 | const qreal sinProgress = qt_sinProgress(t); | - |
| 502 | const qreal mix = qt_smoothBeginEndMixFactor(t); | - |
| 503 | return sinProgress * mix + t * (1 - mix); executed: return sinProgress * mix + t * (1 - mix);Execution Count:11 | 11 |
| 504 | } | - |
| 505 | | - |
| 506 | | - |
| 507 | | - |
| 508 | | - |
| 509 | static qreal easeOutCurve(qreal t) | - |
| 510 | { | - |
| 511 | const qreal sinProgress = qt_sinProgress(t); | - |
| 512 | const qreal mix = qt_smoothBeginEndMixFactor(1 - t); | - |
| 513 | return sinProgress * mix + t * (1 - mix); executed: return sinProgress * mix + t * (1 - mix);Execution Count:11 | 11 |
| 514 | } | - |
| 515 | | - |
| 516 | | - |
| 517 | | - |
| 518 | | - |
| 519 | static qreal easeSineCurve(qreal t) | - |
| 520 | { | - |
| 521 | return (qSin(((t * 3.14159265358979323846 * 2)) - 1.57079632679489661923) + 1) / 2; executed: return (qSin(((t * 3.14159265358979323846 * 2)) - 1.57079632679489661923) + 1) / 2;Execution Count:17 | 17 |
| 522 | } | - |
| 523 | | - |
| 524 | | - |
| 525 | | - |
| 526 | | - |
| 527 | | - |
| 528 | static qreal easeCosineCurve(qreal t) | - |
| 529 | { | - |
| 530 | return (qCos(((t * 3.14159265358979323846 * 2)) - 1.57079632679489661923) + 1) / 2; executed: return (qCos(((t * 3.14159265358979323846 * 2)) - 1.57079632679489661923) + 1) / 2;Execution Count:16 | 16 |
| 531 | } | - |
| 532 | | - |
| | |