| InterpolationHelperStepT Method (T, T, Double, StepInterpolation) |
Performs a step interpolation between two values.
Namespace: DigitalRune.Mathematics.InterpolationAssembly: 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
)
Public Shared Function Step(Of T) (
source As T,
target As T,
parameter As Double,
interpolation As StepInterpolation
) As T
public:
generic<typename T>
static T Step(
T source,
T target,
double parameter,
StepInterpolation interpolation
)
static member Step :
source : 'T *
target : 'T *
parameter : float *
interpolation : StepInterpolation -> 'T
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:
TThe step interpolation of two values.
Remarks
This interpolation returns either source or target
depending on the parameter and the step type
(interpolation).
See Also