API / core/tween/easing_function/quadratic
core/tween/easing_function/quadratic
2차 곡선.
Quadratic curve.
예제Example가운데와 사분 자리 값Values at the middle and the quarter points
use vanilla::easing_function::quadratic;
assert_eq!(quadratic::ease_in(0.5), 0.25);
assert_eq!(quadratic::ease_out(0.5), 0.75);
assert_eq!(quadratic::ease_in_out(0.25), 0.125);함수Functions
천천히 시작한다.
Starts slowly.
- progressf64
- 진행률. (0 ~ 1)Progress. (0 ~ 1)
반환Returnsf64 보간 비율. (0 ~ 1, 0 에서 0, 1 에서 1)Interpolation ratio. (0 ~ 1, 0 at 0, 1 at 1)
천천히 끝난다.
Ends slowly.
- progressf64
- 진행률. (0 ~ 1)Progress. (0 ~ 1)
반환Returnsf64 보간 비율. (0 ~ 1, 0 에서 0, 1 에서 1)Interpolation ratio. (0 ~ 1, 0 at 0, 1 at 1)
천천히 시작하고 천천히 끝난다.
Starts slowly and ends slowly.
- progressf64
- 진행률. (0 ~ 1)Progress. (0 ~ 1)
반환Returnsf64 보간 비율. (0 ~ 1, 0 에서 0, 1 에서 1)Interpolation ratio. (0 ~ 1, 0 at 0, 1 at 1)