Skip to content

Curves

interludesoftware.tick

Interlude.Tick

Curves Class

public static class Curves

Inheritance System.Object → Curves

Methods

Curves.EaseInBack(float) Method

Ease-in with a slight overshoot at the start.

public static float EaseInBack(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseInBounce(float) Method

Bounce easing in — accelerates with multiple impact bounces.

public static float EaseInBounce(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseInCirc(float) Method

Ease-in using a circular (sqrt) curve.

public static float EaseInCirc(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseInCubic(float) Method

Ease-in using a cubic curve.

public static float EaseInCubic(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseInElastic(float) Method

Ease-in with an elastic snap at the end.

public static float EaseInElastic(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseInExpo(float) Method

Ease-in using an exponential curve.

public static float EaseInExpo(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseInOutBack(float) Method

Ease-in-out with slight overshoots at both ends.

public static float EaseInOutBack(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseInOutBounce(float) Method

Bounce easing in-out.

public static float EaseInOutBounce(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseInOutCirc(float) Method

Ease-in-out using a circular (sqrt) curve.

public static float EaseInOutCirc(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseInOutCubic(float) Method

Ease-in-out using a cubic curve.

public static float EaseInOutCubic(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseInOutElastic(float) Method

Ease-in-out with elastic snaps at both ends.

public static float EaseInOutElastic(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseInOutExpo(float) Method

Ease-in-out using an exponential curve.

public static float EaseInOutExpo(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseInOutQuad(float) Method

Ease-in-out using a quadratic curve.

public static float EaseInOutQuad(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseInOutQuart(float) Method

Ease-in-out using a quartic curve.

public static float EaseInOutQuart(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseInOutQuint(float) Method

Ease-in-out using a quintic curve.

public static float EaseInOutQuint(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseInOutSine(float) Method

Ease-in-out using a sine curve.

public static float EaseInOutSine(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseInQuad(float) Method

Ease-in using a quadratic curve.

public static float EaseInQuad(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseInQuart(float) Method

Ease-in using a quartic curve.

public static float EaseInQuart(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseInQuint(float) Method

Ease-in using a quintic curve.

public static float EaseInQuint(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseInSine(float) Method

Ease-in using a sine curve.

public static float EaseInSine(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseOutBack(float) Method

Ease-out with a slight overshoot at the end.

public static float EaseOutBack(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseOutBounce(float) Method

Bounce easing out — decelerates with multiple impact bounces.

public static float EaseOutBounce(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseOutCirc(float) Method

Ease-out using a circular (sqrt) curve.

public static float EaseOutCirc(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseOutCubic(float) Method

Ease-out using a cubic curve.

public static float EaseOutCubic(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseOutElastic(float) Method

Ease-out with an elastic snap at the start.

public static float EaseOutElastic(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseOutExpo(float) Method

Ease-out using an exponential curve.

public static float EaseOutExpo(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseOutQuad(float) Method

Ease-out using a quadratic curve.

public static float EaseOutQuad(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseOutQuart(float) Method

Ease-out using a quartic curve.

public static float EaseOutQuart(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseOutQuint(float) Method

Ease-out using a quintic curve.

public static float EaseOutQuint(float t);

Parameters

t System.Single

Returns

System.Single

Curves.EaseOutSine(float) Method

Ease-out using a sine curve.

public static float EaseOutSine(float t);

Parameters

t System.Single

Returns

System.Single

Curves.InvokeCurve(Curve, float) Method

Dispatches t through the named easing function and returns the result.

public static float InvokeCurve(Interlude.Tick.Curves.Curve curve, float t);

Parameters

curve Interlude.Tick.Curves.Curve

t System.Single

Returns

System.Single

Curves.Jiggle(float, float, float) Method

Damped sine wave that produces a soft wobble and decays to zero.

public static float Jiggle(float t, float frequency=3f, float damping=4f);

Parameters

t System.Single

frequency System.Single

damping System.Single

Returns

System.Single

Curves.Linear(float) Method

Returns t unchanged.

public static float Linear(float t);

Parameters

t System.Single

Returns

System.Single

Curves.Pulse(float, float, float) Method

Repeating sine pulse clamped to [0,1], with sharpness controlling the peak width.

public static float Pulse(float t, float frequency=2f, float sharpness=2f);

Parameters

t System.Single

frequency System.Single

sharpness System.Single

Returns

System.Single

Curves.Shake(float, float) Method

High-frequency oscillation that fades to zero, useful for screen-shake effects.

public static float Shake(float t, float frequency=10f);

Parameters

t System.Single

frequency System.Single

Returns

System.Single

Curves.SmootherStep(float) Method

Smoother Hermite interpolation (6t⁵-15t⁴+10t³) with zero first and second derivatives at endpoints.

public static float SmootherStep(float t);

Parameters

t System.Single

Returns

System.Single

Curves.SmoothStep(float) Method

Smooth Hermite interpolation (3t²-2t³).

public static float SmoothStep(float t);

Parameters

t System.Single

Returns

System.Single

Curves.Spring(float, float, float) Method

Decaying cosine that overshoots the target and settles, like a spring.

public static float Spring(float t, float frequency=2.5f, float damping=3f);

Parameters

t System.Single

frequency System.Single

damping System.Single

Returns

System.Single