Click or drag to resize
DigitalRuneInterpolationHelperStepT Method (T, T, Double, StepInterpolation)
Performs a step interpolation between two values.

Namespace: DigitalRune.Mathematics.Interpolation
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public static T Step<T>(
	T source,
	T target,
	double parameter,
	StepInterpolation interpolation
)

Parameters

source
Type: T
The source value.
target
Type: T
The target value.
parameter
Type: SystemDouble
The interpolation parameter that lies in the interval [0,1]; also known as interpolation factor or weight of the target value.
interpolation
Type: DigitalRune.Mathematics.InterpolationStepInterpolation
The step interpolation type.

Type Parameters

T
The type of the value.

Return Value

Type: T
The step interpolation of two values.
Remarks

This interpolation returns either source or target depending on the parameter and the step type (interpolation).

See Also