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

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

Exponential curve.

Example: Values at the ends and the middle

```rust
use vanilla::easing_function::exponential;

assert_eq!(exponential::ease_in(0.0), 0.0);
assert_eq!(exponential::ease_out(1.0), 1.0);
assert!((exponential::ease_in(0.5) - 0.03125).abs() < 1e-6);
assert!((exponential::ease_out(0.5) - 0.96875).abs() < 1e-6);
```

## Functions and constants

- `pub fn ease_in(progress: f64) -> f64` (method, since 0.4.0): Starts slowly.
  - `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): Ends slowly.
  - `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): Starts slowly and ends slowly.
  - `progress` f64: Progress. (0 ~ 1)
  - returns f64: Interpolation ratio. (0 ~ 1, 0 at 0, 1 at 1)
