Lines Matching refs:t

279 float easing_function_select_dlg::BackEaseIn(float t, float d)  in BackEaseIn()  argument
281 t /= d; in BackEaseIn()
282 return (float)(t *t*(2.70158 * t - 1.70158)); in BackEaseIn()
286 float easing_function_select_dlg::BackEaseOut(float t, float d) in BackEaseOut() argument
288 t = t / d - 1; in BackEaseOut()
289 return (float)(t * t * (2.70158 * t + 1.70158) + 1); in BackEaseOut()
293 float easing_function_select_dlg::BackEaseInOut(float t, float d) in BackEaseInOut() argument
295 t = (2 * t / d); in BackEaseInOut()
297 if (t < 1) in BackEaseInOut()
299 return (float)(t * t * (3.5949 * t - 2.5949) / 2); in BackEaseInOut()
303 t -= 2; in BackEaseInOut()
304 return (float)(t * t * (3.5949 * t + 2.5949) / 2 + 1); in BackEaseInOut()
309 float easing_function_select_dlg::BounceEaseIn(float t, float d) in BounceEaseIn() argument
311 return (float)(1 - BounceEaseOut(d - t, d)); in BounceEaseIn()
315 float easing_function_select_dlg::BounceEaseOut(float t, float d) in BounceEaseOut() argument
317 t /= d; in BounceEaseOut()
318 if (t < 0.363) in BounceEaseOut()
320 return (float)(7.5625 * t * t); in BounceEaseOut()
322 else if (t < 0.727) in BounceEaseOut()
324 t -= (float)0.545; in BounceEaseOut()
325 return (float)(7.5625 * t * t + 0.75); in BounceEaseOut()
327 else if (t < 0.909) in BounceEaseOut()
329 t -= (float)0.818; in BounceEaseOut()
330 return (float)(7.5625 * t * t + 0.9375); in BounceEaseOut()
334 t -= (float)0.9545; in BounceEaseOut()
335 return (float)(7.5625 * t * t + 0.984375); in BounceEaseOut()
341 float easing_function_select_dlg::BounceEaseInOut(float t, float d) in BounceEaseInOut() argument
343 if (t * 2 < d) in BounceEaseInOut()
345 return BounceEaseIn(t * 2, d) / 2; in BounceEaseInOut()
349 return (BounceEaseOut(t * 2 - d, d) + 1) / 2; in BounceEaseInOut()
354 float easing_function_select_dlg::CircEaseIn(float t, float d) in CircEaseIn() argument
356 t /= d; in CircEaseIn()
357 return (float)(1 - sqrt(1 - t * t)); in CircEaseIn()
361 float easing_function_select_dlg::CircEaseOut(float t, float d) in CircEaseOut() argument
363 t = (t / d) - 1; in CircEaseOut()
364 return (float)(sqrt(1 - t * t)); in CircEaseOut()
368 float easing_function_select_dlg::CircEaseInOut(float t, float d) in CircEaseInOut() argument
370 t = (2 * t / d); in CircEaseInOut()
371 if (t < 1) in CircEaseInOut()
373 return (float)((1 - sqrt(1 - t * t)) / 2); in CircEaseInOut()
377 t-=2; in CircEaseInOut()
378 return (float)((1 + sqrt(1 - t * t)) / 2); in CircEaseInOut()
383 float easing_function_select_dlg::CubicEaseIn(float t, float d) in CubicEaseIn() argument
385 t /= d; in CubicEaseIn()
387 return (t * t * t); in CubicEaseIn()
391 float easing_function_select_dlg::CubicEaseOut(float t, float d) in CubicEaseOut() argument
393 t = t / d - 1; in CubicEaseOut()
394 return (t * t * t + 1); in CubicEaseOut()
398 float easing_function_select_dlg::CubicEaseInOut(float t, float d) in CubicEaseInOut() argument
400 t = 2 * t / d; in CubicEaseInOut()
402 if (t < 1) in CubicEaseInOut()
404 return (t * t * t / 2); in CubicEaseInOut()
408 t -= 2; in CubicEaseInOut()
409 return (t * t * t / 2 + 1); in CubicEaseInOut()
414 float easing_function_select_dlg::ElasticEaseIn(float t, float d) in ElasticEaseIn() argument
416 if (t == 0) in ElasticEaseIn()
421 if (t == d) in ElasticEaseIn()
426 t = (t / d) - 1; in ElasticEaseIn()
428 return (float)(-pow(2, 10 * t) * sin(20.93 * t -1.57)); in ElasticEaseIn()
432 float easing_function_select_dlg::ElasticEaseOut(float t, float d) in ElasticEaseOut() argument
434 if (t == 0) in ElasticEaseOut()
439 if (t == d) in ElasticEaseOut()
444 t /= d; in ElasticEaseOut()
445 return (float)(pow(2, -10 * t) * sin(20.93 * t - 1.57) + 1); in ElasticEaseOut()
449 float easing_function_select_dlg::ElasticEaseInOut(float t, float d) in ElasticEaseInOut() argument
451 if (t == 0) in ElasticEaseInOut()
456 t = (2 * t) / d; in ElasticEaseInOut()
457 if (t == 2) in ElasticEaseInOut()
462 if (t < 1) in ElasticEaseInOut()
464 t -= 1; in ElasticEaseInOut()
465 return (float)(-pow(2, 10 * t) * sin(13.96*t - 1.57) / 2); in ElasticEaseInOut()
469 t -= 1; in ElasticEaseInOut()
470 return (float)(pow(2, -10 * t) * sin(13.96*t - 1.57) / 2 + 1); in ElasticEaseInOut()
475 float easing_function_select_dlg::ExpoEaseIn(float t, float d) in ExpoEaseIn() argument
477 t /= d; in ExpoEaseIn()
478 return (float)pow(2, 10 * (t - 1)); in ExpoEaseIn()
482 float easing_function_select_dlg::ExpoEaseOut(float t, float d) in ExpoEaseOut() argument
484 t /= d; in ExpoEaseOut()
485 return (float)(1 - pow(2, -10 * t)); in ExpoEaseOut()
489 float easing_function_select_dlg::ExpoEaseInOut(float t, float d) in ExpoEaseInOut() argument
491 t = 2 * t / d; in ExpoEaseInOut()
492 if (t < 1) in ExpoEaseInOut()
494 return (float)pow(2, 10 * (t - 1)) / 2; in ExpoEaseInOut()
498 t--; in ExpoEaseInOut()
499 return (float)(1 - pow(2, -10 * t) / 2); in ExpoEaseInOut()
505 float easing_function_select_dlg::QuadEaseInt(float t, float d) in QuadEaseInt() argument
507 t /= d; in QuadEaseInt()
508 return t * t; in QuadEaseInt()
512 float easing_function_select_dlg::QuadEaseOut(float t, float d) in QuadEaseOut() argument
514 t /= d; in QuadEaseOut()
515 return t * (2 - t); in QuadEaseOut()
519 float easing_function_select_dlg::QuadEaseInOut(float t, float d) in QuadEaseInOut() argument
521 t = (2 * t / d); in QuadEaseInOut()
522 if (t < 1) in QuadEaseInOut()
524 return (t * t / 2); in QuadEaseInOut()
528 t--; in QuadEaseInOut()
529 return ((1 - t* (t - 2)) / 2); in QuadEaseInOut()
534 float easing_function_select_dlg::QuartEaseIn(float t, float d) in QuartEaseIn() argument
536 t /= d; in QuartEaseIn()
537 return t * t * t * t; in QuartEaseIn()
541 float easing_function_select_dlg::QuartEaseOut(float t, float d) in QuartEaseOut() argument
543 t = t / d - 1; in QuartEaseOut()
544 return (1 - t*t*t*t); in QuartEaseOut()
548 float easing_function_select_dlg::QuartEaseInOut(float t, float d) in QuartEaseInOut() argument
550 t = (2 * t / d); in QuartEaseInOut()
551 if (t < 1) in QuartEaseInOut()
553 return t * t * t * t / 2; in QuartEaseInOut()
557 t -= 2; in QuartEaseInOut()
558 return (1 - t * t * t * t / 2); in QuartEaseInOut()
563 float easing_function_select_dlg::QuintEaseIn(float t, float d) in QuintEaseIn() argument
565 t /= d; in QuintEaseIn()
566 return t * t * t * t * t; in QuintEaseIn()
570 float easing_function_select_dlg::QuintEaseOut(float t, float d) in QuintEaseOut() argument
572 t = (t / d - 1); in QuintEaseOut()
573 return (t * t * t * t * t + 1); in QuintEaseOut()
577 float easing_function_select_dlg::QuintEaseInOut(float t, float d) in QuintEaseInOut() argument
579 t = (2 * t / d); in QuintEaseInOut()
580 if (t < 1) in QuintEaseInOut()
582 return t * t * t * t *t / 2; in QuintEaseInOut()
586 t -= 2; in QuintEaseInOut()
587 return (t * t* t* t* t / 2 + 1); in QuintEaseInOut()
592 float easing_function_select_dlg::SinEaseIn(float t, float d) in SinEaseIn() argument
594 return (float)(1 - cos(t / d * 1.57)); in SinEaseIn()
598 float easing_function_select_dlg::SinEaseOut(float t, float d) in SinEaseOut() argument
600 return (float)sin(t / d * 1.57); in SinEaseOut()
604 float easing_function_select_dlg::SinEaseInOut(float t, float d) in SinEaseInOut() argument
606 return (float)((1 - cos(t / d * 3.14)) / 2); in SinEaseInOut()