| InterpolationHelperStepT Method (T, T, Single, 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,
float parameter,
StepInterpolation interpolation
)
Public Shared Function Step(Of T) (
source As T,
target As T,
parameter As Single,
interpolation As StepInterpolation
) As T
public:
generic<typename T>
static T Step(
T source,
T target,
float parameter,
StepInterpolation interpolation
)
static member Step :
source : 'T *
target : 'T *
parameter : float32 *
interpolation : StepInterpolation -> 'T
Parameters
- source
- Type: T
The source value. - target
- Type: T
The target value. - parameter
- Type: SystemSingle
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