Click or drag to resize
DigitalRuneInterpolationHelperCosineInterpolation Method (Double, Double, Double)
Performs a cosine interpolation between two values (double-precision).

Namespace: DigitalRune.Mathematics.Interpolation
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public static double CosineInterpolation(
	double source,
	double target,
	double parameter
)

Parameters

source
Type: SystemDouble
The source value.
target
Type: SystemDouble
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.

Return Value

Type: Double
The cosine interpolation of two values.
Remarks
CosineInterpolation(a, b, 0) returns a. CosineInterpolation(a, b, 1) returns b.
See Also