Documentation

Unity Engine

Download Unity

Unity Engine

ExponentialInOut(float)

Interpolation function modeled after the piecewise exponential y = (1/2)2^(10(2x - 1)): [0, 0.5] y = -(1/2)*2^(-10(2x - 1)) + 1: (0.5, 1]
Read time 1 minuteLast updated 4 hours ago

Definition

[BurstCompile]public static float ExponentialInOut(float x)

Parameters

Value to interpolate.

Returns

Type

Description

floatThe interpolated value.

Remarks

Only valid for x values in range [-0.5, 1.5].