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: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static float InterpolateCurveDistance(
	this AnimationCurve animationCurve,
	float start,
	float distance,
	float elapsedTime,
	float duration
)

Parameters

animationCurve
Type: AnimationCurve
The curve to use to find the value
start
Type: SystemSingle
The value before any interpolation
distance
Type: SystemSingle
The distance from the start point to end this interpolation
elapsedTime
Type: SystemSingle
The amount of time that has passed since the interpolation began
duration
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