Click or drag to resize
DigitalRuneInterpolationHelperCosineInterpolation Method (Vector2F, Vector2F, Single)
Performs a cosine interpolation between two Vector2F.

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

Parameters

source
Type: DigitalRune.Mathematics.AlgebraVector2F
The source value.
target
Type: DigitalRune.Mathematics.AlgebraVector2F
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.

Return Value

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