Click or drag to resize

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

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

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

Parameters

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