Documentation

Unity Engine

Download Unity

Unity Engine

CubicInOut(float)

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

Definition

[BurstCompile]public static float CubicInOut(float x)

Parameters

Value to interpolate.

Returns

Type

Description

floatThe interpolated value.