Click or drag to resize

InterpolateGetEaseFunction Method

Returns the static method that implements the given easing type for scalars. Use this method to easily switch between easing interpolation types. All easing methods clamp elapsedTime so that it is always greater than or equal to duration.

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static InterpolateFunction GetEaseFunction(
	InterpolateEaseType type
)

Parameters

type
Type: DustProductions.CoreInterpolateEaseType
The type of ease function to use

Return Value

Type: InterpolateFunction
The ease function of the type passed in
Examples
var ease = Interpolate.Ease(EaseType.EaseInQuad);
i = ease(start, end, elapsedTime, duration);
See Also