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

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

사인 곡선.

예제: 끝과 가운데 값

```rust
use vanilla::easing_function::sinusoidal;

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

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