# 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/

Bounces on the floor.

Example: Values at the bounce points

```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): Bounces at the start, then moves forward.
  - `progress` f64: Progress. (0 ~ 1)
  - returns f64: Interpolation ratio. (0 ~ 1, 0 at 0, 1 at 1)
- `pub fn ease_out(progress: f64) -> f64` (method, since 0.4.0): Hits the end and bounces to a stop.
  - `progress` f64: Progress. (0 ~ 1)
  - returns f64: Interpolation ratio. (0 ~ 1, 0 at 0, 1 at 1)
- `pub fn ease_in_out(progress: f64) -> f64` (method, since 0.4.0): Bounces at the start and the end.
  - `progress` f64: Progress. (0 ~ 1)
  - returns f64: Interpolation ratio. (0 ~ 1, 0 at 0, 1 at 1)
