Click or drag to resize

CurveInterpolaterInterpolateCurve Method (AnimationCurve, Single, Single, Single, Single)

Retrieve the interpolated float value between a start and end point at a certain time

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


Type: AnimationCurve
The curve to use to find the value
Type: SystemSingle
The value before any interpolation
Type: SystemSingle
The value after the interpolation is complete
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