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

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

Circular curve.

Example: Values on the circle

```rust
use vanilla::easing_function::circular;

assert!((circular::ease_in(0.6) - 0.2).abs() < 1e-6);
assert!((circular::ease_out(0.4) - 0.8).abs() < 1e-6);
assert_eq!(circular::ease_in_out(0.5), 0.5);
```

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