API / core/tween/easing_function/sinusoidal
core/tween/easing_function/sinusoidal
사인 곡선.
Sine curve.
예제Example끝과 가운데 값Values at the ends and the middle
use vanilla::easing_function::sinusoidal;
assert_eq!(sinusoidal::ease_in(0.0), 0.0);
assert!((sinusoidal::ease_out(1.0) - 1.0).abs() < 1e-6);
assert!((sinusoidal::ease_in_out(0.5) - 0.5).abs() < 1e-6);함수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)