CircularInOut(float)
Interpolation function modeled after the piecewise circular function: y = (1/2)(1 - sqrt(1 - 4x^2)): [0, 0.5] y = (1/2)(sqrt(-(2x - 3)*(2x - 1)) + 1): (0.5, 1]
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
[BurstCompile]public static float CircularInOut(float x)
Parameters
Value to interpolate.
Returns
Type | Description |
|---|---|
| float | The interpolated value. |
Remarks
Only valid for x values in range [-0.5, 1.5].