Click or drag to resize

CurveInterpolaterInterpolateCurveDistance Method (AnimationCurve, Single, Single, Single, Single)

Retrieve the interpolated float value between a start and end point at a certain time by passing in the distance instead of the end point

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core (in DustProductions.Core.dll) Version: (
public static float InterpolateCurveDistance(
	this AnimationCurve animationCurve,
	float start,
	float distance,
	float elapsedTime,
	float duration


Type: AnimationCurve
The curve to use to find the value
Type: SystemSingle
The value before any interpolation
Type: SystemSingle
The distance from the start point to end this interpolation
Type: SystemSingle
The amount of time that has passed since the interpolation began
Type: SystemSingle
The total amount of time for this interpolation

Return Value

Type: Single
The value at the point on the curve at the time passed in

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type AnimationCurve. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also