Table of Contents

Class Easing

Namespace
Xui.Core.Animation
Assembly
Core.dll

Provides a collection of easing functions and smoothing utilities used in animations. All easing methods are normalized to take a parameter t in the range [0, 1].

public static class Easing
Inheritance
Easing
Inherited Members

Methods

EaseInBack(NFloat)

Eases in with a "backwards" overshoot effect before settling forward.

public static NFloat EaseInBack(NFloat t)

Parameters

t NFloat

Returns

NFloat

EaseInBounce(NFloat)

Reverses EaseOutBounce to ease in with bounce.

public static NFloat EaseInBounce(NFloat t)

Parameters

t NFloat

Returns

NFloat

EaseInCubic(NFloat)

Accelerates slowly with a cubic curve.

public static NFloat EaseInCubic(NFloat t)

Parameters

t NFloat

Returns

NFloat

EaseInElastic(NFloat)

Creates an elastic "bounce-in" effect at the beginning of the transition.

public static NFloat EaseInElastic(NFloat t)

Parameters

t NFloat

Returns

NFloat

EaseInOutBack(NFloat)

Eases in and out with a "backwards" overshoot at both ends.

public static NFloat EaseInOutBack(NFloat t)

Parameters

t NFloat

Returns

NFloat

EaseInOutBounce(NFloat)

Eases in and out with a bounce at both ends.

public static NFloat EaseInOutBounce(NFloat t)

Parameters

t NFloat

Returns

NFloat

EaseInOutCubic(NFloat)

Smoothly accelerates and decelerates with a cubic curve.

public static NFloat EaseInOutCubic(NFloat t)

Parameters

t NFloat

Returns

NFloat

EaseInOutElastic(NFloat)

Combines EaseInElastic and EaseOutElastic for a spring-like bounce effect at both ends.

public static NFloat EaseInOutElastic(NFloat t)

Parameters

t NFloat

Returns

NFloat

EaseInOutQuad(NFloat)

Accelerates and decelerates using a quadratic curve.

public static NFloat EaseInOutQuad(NFloat t)

Parameters

t NFloat

Returns

NFloat

EaseInOutQuart(NFloat)

Strong acceleration and deceleration using a quartic curve.

public static NFloat EaseInOutQuart(NFloat t)

Parameters

t NFloat

Returns

NFloat

EaseInOutSine(NFloat)

Eases in and out with a sine curve. Smoothest at beginning and end.

public static NFloat EaseInOutSine(NFloat t)

Parameters

t NFloat

Returns

NFloat

EaseInQuad(NFloat)

Accelerates slowly from 0 to 1 with a quadratic curve.

public static NFloat EaseInQuad(NFloat t)

Parameters

t NFloat

Returns

NFloat

EaseInQuart(NFloat)

Stronger acceleration from 0 using a quartic curve.

public static NFloat EaseInQuart(NFloat t)

Parameters

t NFloat

Returns

NFloat

EaseOutBack(NFloat)

Eases out with a slight overshoot after reaching the target.

public static NFloat EaseOutBack(NFloat t)

Parameters

t NFloat

Returns

NFloat

EaseOutBounce(NFloat)

Creates a bounce effect as if hitting the ground and bouncing back.

public static NFloat EaseOutBounce(NFloat t)

Parameters

t NFloat

Returns

NFloat

EaseOutCubic(NFloat)

Decelerates slowly with a cubic curve.

public static NFloat EaseOutCubic(NFloat t)

Parameters

t NFloat

Returns

NFloat

EaseOutElastic(NFloat)

Creates an elastic "bounce-out" effect at the end of the transition.

public static NFloat EaseOutElastic(NFloat t)

Parameters

t NFloat

Returns

NFloat

EaseOutQuad(NFloat)

Decelerates smoothly from 1 to 0 with a quadratic curve.

public static NFloat EaseOutQuad(NFloat t)

Parameters

t NFloat

Returns

NFloat

EaseOutQuart(NFloat)

Stronger deceleration to 1 using a quartic curve.

public static NFloat EaseOutQuart(NFloat t)

Parameters

t NFloat

Returns

NFloat

Normalize(NFloat, NFloat, NFloat)

Normalizes a value between min and max into a [0,1] range. Returns 0 if maxmin.

public static NFloat Normalize(NFloat value, NFloat min, NFloat max)

Parameters

value NFloat
min NFloat
max NFloat

Returns

NFloat

SmoothDamp(NFloat, NFloat, ref NFloat, NFloat, NFloat, NFloat)

Smoothly interpolates between two values using a critically damped spring-like function.

public static NFloat SmoothDamp(NFloat from, NFloat to, ref NFloat velocity, NFloat smoothTime, NFloat maxSpeed, NFloat deltaTime)

Parameters

from NFloat

The starting value.

to NFloat

The target value.

velocity NFloat

Reference to current velocity (will be modified).

smoothTime NFloat

Time it takes to reach the target value.

maxSpeed NFloat

Maximum speed during interpolation.

deltaTime NFloat

Elapsed time since the last update.

Returns

NFloat

SmootherStep(NFloat)

Applies a smoothstep-like easing function that produces smooth transitions with zero first and second derivatives at boundaries.

public static NFloat SmootherStep(NFloat t)

Parameters

t NFloat

Returns

NFloat