Click or drag to resize

InterpolateGetEaseDistanceFunction 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 InterpolateFunctionDistance GetEaseDistanceFunction(
	InterpolateEaseType type
)

Parameters

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

Return Value

Type: InterpolateFunctionDistance
The ease distance function of the type passed in
Examples
var easeDistance = Interpolate.EaseDistance(EaseType.EaseInQuad);
i = easeDistance(start, distance, elapsedTime, duration);
See Also