# core/tween/easing_function/bounce (vanilla-engine 0.4.0)

> https://vanillapunch.com/docs/vanilla-engine/0.4.0/api/core/tween/easing_function/bounce/

바닥에 튕긴다.

예제: 튕기는 자리의 값

```rust
use vanilla::easing_function::bounce;

assert_eq!(bounce::ease_out(0.0), 0.0);
assert!((bounce::ease_out(0.5) - 0.765625).abs() < 1e-6);
assert!((bounce::ease_out(1.0) - 1.0).abs() < 1e-6);
assert_eq!(bounce::ease_in_out(0.5), 0.5);
```

## Functions and constants

- `pub fn ease_in(progress: f64) -> f64` (method, since 0.4.0): 시작에서 튕기다 나아간다.
  - `progress` f64: 진행률. (0 ~ 1)
  - returns f64: 보간 비율. (0 ~ 1, 0 에서 0, 1 에서 1)
- `pub fn ease_out(progress: f64) -> f64` (method, since 0.4.0): 끝에 닿아 튕기다 멈춘다.
  - `progress` f64: 진행률. (0 ~ 1)
  - returns f64: 보간 비율. (0 ~ 1, 0 에서 0, 1 에서 1)
- `pub fn ease_in_out(progress: f64) -> f64` (method, since 0.4.0): 시작과 끝에서 튕긴다.
  - `progress` f64: 진행률. (0 ~ 1)
  - returns f64: 보간 비율. (0 ~ 1, 0 에서 0, 1 에서 1)
