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

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

Quadratic curve.

Example: Values at the middle and the quarter points

```rust
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 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)
