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

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

3차 곡선.

예제: 가운데와 사분 자리 값

```rust
use vanilla::easing_function::cubic;

assert_eq!(cubic::ease_in(0.5), 0.125);
assert_eq!(cubic::ease_out(0.5), 0.875);
assert_eq!(cubic::ease_in_out(0.75), 0.9375);
```

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